MCPcopy Create free account
hub / github.com/ActiveState/code / wait_for_fd

Function wait_for_fd

recipes/Python/578889_socketsendfile/recipe-578889.py:87–89  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

85 pollster.register(sockno, select.POLLOUT)
86
87 def wait_for_fd():
88 if pollster.poll(timeout) == []:
89 raise socket._socket.timeout('timed out')
90 else:
91 # call select() once in order to solicit ValueError in
92 # case we run out of fds

Callers 1

_sendfile_use_sendfileFunction · 0.85

Calls 2

pollMethod · 0.45
selectMethod · 0.45

Tested by

no test coverage detected