A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2010-October/104491.html below:

[Python-Dev] socket.fromfd() documentation problem

[Python-Dev] socket.fromfd() documentation problem [Python-Dev] socket.fromfd() documentation problemKálmán Gergely kalman.gergely at duodecad.hu
Wed Oct 6 09:34:05 CEST 2010
Hello

I was having a very nasty fd leak recently where I've leaked more than 200k
FDs, allocating more than 1Gbytes of ram in kernel space. It was my 
fault alright,
but I thought I'd mention it here so maybe you'll put a little NOTE 
section in the
documentation mentioning that you have to os.close() the original FD to 
avoid
leakage. Also I'm not completely clear why python does it this way and 
why not
close the original socket - it seems (at least to me) that this would be 
the right(er)
way.

Nevertheless what are your thoughts on this? Should I file a bug report 
for it?

(The best part was that the allocated FD memory did not show up as slab, so
this was a real pain in the butt to hunt down)

Kalman Gergely
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4