Changeset 3fbe087 in mod_gnutls
- Timestamp:
- Dec 7, 2019, 3:24:22 PM (3 years ago)
- Branches:
- asyncio, main, master, proxy-ticket
- Children:
- a592762
- Parents:
- eb84747
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
test/mgstest/tests.py
reb84747 r3fbe087 314 314 315 315 """ 316 import fcntl317 316 import os 318 317 import select … … 322 321 # Set the input to non-blocking mode 323 322 fd = in_stream.fileno() 324 fl = fcntl.fcntl(fd, fcntl.F_GETFL) 325 fcntl.fcntl(fd, fcntl.F_SETFL, fl | os.O_NONBLOCK) 323 os.set_blocking(fd, False) 326 324 327 325 # The poll object allows waiting for events on non-blocking IO
Note: See TracChangeset
for help on using the changeset viewer.