-
-
Notifications
You must be signed in to change notification settings - Fork 357
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CherryPy SSL Built-in Adapter Causing Port Contention with Netcat #2025
Comments
cherrypy/cheroot#649 will hopefully fix this. |
@webknjaz Thanks for the update, I could see that PR has been merged, do you know when this will be released? Thanks. |
Follow the discussion over in Cheroot. |
16 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm encountering an issue with CherryPy's built-in SSL adapter where it seems to cause port contention with netcat. When I run a CherryPy server with SSL enabled using the built-in adapter, and establish a TCP connection using netcat nc localhost 8080 without performing TLS handshake, not able to access the application via browser or any other client until I complete the TLS handshake in netcat. However, if I switch to using PyOpenSSL, able to access the application via other clients while TLS handshake is not yet done in TCP connection via netcat.
I'm not sure why the built-in SSL adapter is causing this behavior, but it seems to be related to how it manages SSL connections or handles socket bindings.
Has anyone encountered a similar issue with CherryPy's built-in SSL adapter? Any insights or suggestions on how to resolve or further debug this issue would be greatly appreciated.
Thank you!
I'm submitting a ...
Do you want to request a feature or report a bug? Report a bug
What is the current behavior?
Here's a summary of the setup and behavior:
https://localhost:8080/
in browser, returns"Hello, world!"
nc localhost 8080
in a terminalhttps://localhost:8080/
again in browser, it hangs.ctrl+c
thenc
command in terminal,"Hello, world!"
is returned in the browser.cherrypy.server.ssl_module = 'pyopenssl'
, with TCP connection established using nc, able to access the URL in the browser and other clients.If the current behavior is a bug, please provide the steps to reproduce and if possible a screenshots and logs of the problem. If you can, show us your code.
What is the expected behavior?
What is the motivation / use case for changing the behavior?
Please tell us about your environment:
The text was updated successfully, but these errors were encountered: