pyzeroconf icon indicating copy to clipboard operation
pyzeroconf copied to clipboard

Prevented EBADF errors caused by closing sockets prematurely.

Open justingiorgi opened this issue 9 years ago • 1 comments

Zeroconf.close() immediately closed sockets which child threads may still need to finish their operations. This was causing EBADF (bad file descriptor) errors in some cases. Zeroconf.close() now blocks until all known child threads have stopped then closes the sockets safely.

Added a test and incidentally fixed some tests that weren't running.

justingiorgi avatar Mar 02 '16 00:03 justingiorgi

Wrong fork. Please do not merge.

justingiorgi avatar Mar 02 '16 00:03 justingiorgi