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
socketmodule ssl: server & thread #34987
Comments
Simple enhancement to the SSL support in module socket
This patch allows for powerfull application servers from socket import *
p=socket(AF_INET,SOCK_STREAM)
p.bind(('localhost',1443))
p.listen(1)
while 1 :
s,a = p.accept()
c = sslserver(s,'server.key','server.crt')
print "They said:", c.read()
c.write('HTTP/1.0 200 OK\r\n')
c.write('Content-Type: text/plain\r\n\r\n** Hi!
**')
c.close() TODO: a kind of makefile() on the ssl object like on a Have fun, jh |
Logged In: YES Nice, but where's the documentation? (Thanks for the |
Logged In: YES Jozef-- are you going to contribute tests and documentation? |
Logged In: YES I'll submit a simple test with certificates and an enhanced |
Logged In: YES If you can provide test cases, I'll provide documentation. |
Logged In: YES This patch now against Python 2.2a3 contains: |
Logged In: YES Time to look at this again? |
Logged In: YES I don't think it is a good idea to add this. Python's I'm working on something that would hopefully be better in |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: