New submission from Victor Porton: When I connect
telnet XXX 9000 to the server in attached file, the connection breaks after 5 min (and a few seconds), as if SO_KEEPALIVE were not specified. I run my server on FreeBSD 9.2-RELEASE-p15 (GENERIC) So SO_KEEPALIVE does not work in Python 2.7 and 3.5 on FreeBSD. Specifically, I need my TCP connection not to break in extended periods of time and cannot do this with Python. It seems that similar code does work with PHP (I am going to write a short PHP example), so it is likely a Python bug, not FreeBSD bug. ---------- components: FreeBSD, IO, Library (Lib) files: bug.py messages: 281911 nosy: koobs, porton priority: normal severity: normal status: open title: socket.SO_KEEPALIVE does not work on FreeBSD type: behavior versions: Python 2.7, Python 3.5 Added file: http://bugs.python.org/file45677/bug.py _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue28825> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com