paulc / dnslib

A Python library to encode/decode DNS wire-format packets
https://github.com/paulc/dnslib
BSD 2-Clause "Simplified" License
295 stars 84 forks source link

exceptions leave socks open #16

Closed sunds closed 3 years ago

sunds commented 3 years ago

Exceptions thrown from the socket class in dns.py leave the socket open. Eventually your process will have too many open file descriptors:

OSError: [Errno 24] Too many open files

paulc commented 3 years ago

Fixed (hopefully) in 0.9.16