interface documentation
class _IExhaustsFileDescriptors(Interface):
Known implementations: twisted.internet.test.test_tcp.AssertPeerClosedOnEMFILETests.NullExhauster
, twisted.internet.test.test_tcp._ExhaustsFileDescriptors
A way to trigger EMFILE.
Method | count |
Return the number of opened file descriptors. |
Method | exhaust |
Open file descriptors until EMFILE is reached. |
Method | release |
Release all file descriptors opened by exhaust . |
Return the number of opened file descriptors.
Returns | |
int | The number of opened file descriptors; this will be zero if this instance has not opened any. |
Open file descriptors until EMFILE is reached.
This can raise any exception except an OSError
whose errno is EMFILE. Any exception raised to the caller implies release
.