aboutsummaryrefslogtreecommitdiffstats
path: root/netlib/tcp.py
Commit message (Collapse)AuthorAgeFilesLines
* Add a request_client_cert argument to server SSL conversion.Aldo Cortesi2013-05-131-4/+16
| | | | | | | | | | By default, we now do not request the client cert. We're supposed to be able to do this with no negative effects - if the client has no cert to present, we're notified and proceed as usual. Unfortunately, Android seems to have a bug (tested on 4.2.2) - when an Android client is asked to present a certificate it does not have, it hangs up, which is frankly bogus. Some time down the track we may be able to make the proper behaviour the default again, but until then we're conservative.
* Fix exception hierarchy.Aldo Cortesi2013-05-051-2/+2
|
* 100% test coverage.Aldo Cortesi2013-03-031-1/+1
|
* Make sni_handler an argument to BaseHandler.convert_to_sslAldo Cortesi2013-02-251-20/+15
|
* Housekeeping and cleanup, some minor argument name changes.Aldo Cortesi2013-02-241-5/+5
|
* More accurate description of an HTTP read error, make pyflakes happy.Aldo Cortesi2013-02-241-2/+2
|
* 100% test coverageAldo Cortesi2013-01-271-14/+7
|
* Bump unit tests, fix two serious wee buglets discovered.Aldo Cortesi2013-01-261-2/+2
|
* Introduce the mock module to improve unit tests.Aldo Cortesi2013-01-261-0/+6
| | | | | There are a few socket corner-cases that are incredibly hard to reproduce in a unit test suite, so we use mock to trigger the exceptions instead.
* Extract TCP test utilities into netlib.testAldo Cortesi2013-01-251-5/+6
|
* Improve error signalling for client certificates.Aldo Cortesi2013-01-201-3/+6
|
* Beef up client certificate handling substantially.Aldo Cortesi2013-01-201-1/+9
|
* Fix client cert typo.Aldo Cortesi2013-01-181-1/+1
|
* renaming the timestamp in preparation of other timestamps that will be added ↵Rouli2013-01-161-4/+4
| | | | later, adding tests
* adding read timestamp to enable better resolution of when certain reads were ↵Israel Nir2013-01-101-0/+4
| | | | performed (timestamp is updated when the first byte is available on the network)
* More info on disconnect exception.Aldo Cortesi2012-10-141-2/+2
|
* Limit reads to block length.Aldo Cortesi2012-10-091-2/+6
|
* Add a settimeout method to tcp.BaseHandler.Aldo Cortesi2012-10-011-0/+3
|
* Split FileLike into Writer and Reader, and add logging functionality.Aldo Cortesi2012-09-241-16/+53
|
* Don't create fresh FileLike objects when converting to SSLAldo Cortesi2012-09-241-4/+7
|
* Handle disconnects on flush.Aldo Cortesi2012-07-301-2/+5
|
* Handle HTTP responses that have a body but no content-length or transfer ↵Aldo Cortesi2012-07-241-3/+8
| | | | | | | | | encoding We check if the server sent a connection:close header, and read till the socket closes. Closes #2
* Catch an amazingly subtle SSL connection corruption bug.Aldo Cortesi2012-07-231-3/+3
| | | | | | Closing a set of pseudo-file descriptors in the wrong order caused junk data to be written to the SSL stream. An apparent bug in OpenSSL then lets this corrupt the _next_ SSL connection.
* Handle unexpected SSL connection termination in readline.Aldo Cortesi2012-07-211-3/+8
|
* Handle socket disconnects on reads.Aldo Cortesi2012-07-211-0/+2
|
* Timeout for TCP clients.Aldo Cortesi2012-07-211-8/+28
|
* Set ssl_established right after the connection object is changed.Aldo Cortesi2012-07-201-2/+2
|
* close() methods for clients and servers.Aldo Cortesi2012-07-201-3/+31
|
* Don't write empty values.Aldo Cortesi2012-07-101-4/+5
|
* Somewhat nicer handling of errors after thread termination.Aldo Cortesi2012-07-101-13/+10
|
* Add an exception to indicate remote disconnects.Aldo Cortesi2012-07-081-6/+15
|
* Refactor TCP test suite.Aldo Cortesi2012-07-051-1/+1
|
* Expose SSL options, use TLSv1 by default for client connections.Aldo Cortesi2012-07-041-4/+42
|
* Allow control of buffer size for TCPClient, improve error messages.Aldo Cortesi2012-06-301-1/+4
|
* Return a certutils.SSLCert object from get_remote_cert.Aldo Cortesi2012-06-281-1/+1
|
* Merge branch 'master' of github.com:cortesi/netlibAldo Cortesi2012-06-281-1/+2
|\
| * Add a get_remote_cert method to tcp client.Aldo Cortesi2012-06-281-0/+1
| |
| * Merge branch 'master' of ssh.github.com:cortesi/netlibAldo Cortesi2012-06-271-1/+2
| |\
| * | Minor refactoring.Aldo Cortesi2012-06-271-1/+1
| | |
* | | Handle obscure termination scenario, where interpreter exits before thread ↵Aldo Cortesi2012-06-281-10/+14
| |/ |/| | | | | termination.
* | Fix termiantion error in file read.Aldo Cortesi2012-06-271-1/+2
|/
* Add a flag to track SSL connection establishment.Aldo Cortesi2012-06-261-0/+4
|
* Hunt down a tricky WSGI socket hang.Aldo Cortesi2012-06-261-3/+9
|
* Add SNI.Aldo Cortesi2012-06-261-1/+22
|
* Perform handshake immediately on SSL conversion.Aldo Cortesi2012-06-251-0/+2
| | | | | Otherwise the handshake happens at first write, which can balls up if either side hangs immediately.
* Improve TCPClient interface.Aldo Cortesi2012-06-251-15/+16
| | | | | - Don't pass SSL parameters on instantiation. - Add a convert_to_ssl method analogous to that in TCPServer.
* Add a finished flag to BaseHandler, and catch an extra OpenSSL exception.Aldo Cortesi2012-06-251-1/+3
|
* Don't connect during __init__ methods for either client or server.Aldo Cortesi2012-06-251-5/+5
| | | | This means we now need to do these things explicitly at the caller.
* SSL tests, plus some self-signed test certificates.Aldo Cortesi2012-06-251-2/+2
|
* Drop default poll interval to 0.1s.Aldo Cortesi2012-06-201-1/+1
|