twisted.test.test_tcp.ProperlyCloseFilesMixin
class documentationtwisted.test.test_tcp
(View In Hierarchy)
Known subclasses: twisted.test.test_ssl.StolenTCPTests, twisted.test.test_tcp.ProperlyCloseFilesTests
Tests for platform resources properly being cleaned up.
Method | createServer | Bind a server port to which connections will be made. The server should use the given protocol factory. |
Method | connectClient | Establish a connection to the given address using the given ClientCreator
instance. |
Method | getHandleExceptionType | Return the exception class which will be raised when an operation is attempted on a closed platform handle. |
Method | getHandleErrorCodeMatcher | Return a hamcrest.core.matcher.Matcher that matches the
errno expected to result from writing to a closed platform socket
handle. |
Method | test_properlyCloseFiles | Test that lost connections properly have their underlying socket resources cleaned up. |
Bind a server port to which connections will be made. The server should use the given protocol factory.
Returns | The IListeningPort
for the server created. |
Establish a connection to the given address using the given ClientCreator
instance.
Returns | A Deferred which will fire with the connected protocol instance. |
Return the exception class which will be raised when an operation is attempted on a closed platform handle.
Return a hamcrest.core.matcher.Matcher
that matches the
errno expected to result from writing to a closed platform socket
handle.