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
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to