NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

lib/52486: socket.TCP_KEEPIDLE not supported?



>Number:         52486
>Category:       lib
>Synopsis:       getsockopt(socket.SOL_TCP, socket.TCP_KEEPIDLE) fails in python
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Aug 14 22:00:00 +0000 2017
>Originator:     Benjamin Lorenz
>Release:        NetBSD 8.0_BETA
>Organization:
	
>Environment:
	
	
System: NetBSD hermes.lorenz.place 8.0_BETA NetBSD 8.0_BETA (RPI2) #2: Mon Jul 31 06:49:53 CEST 2017 bjjl@hermes.lorenz.place:/mnt/obj/sys/arch/evbarm/compile/RPI2 evbarm
Architecture: earmv7hf
Machine: evbarm
>Description:
TCP_KEEPIDLE is described in tcp(4) but not implemented in getsockopt(2).
This breaks the latest MongoDB driver for Python.
>How-To-Repeat:
-bash-4.3$ python2.7
Python 2.7.10 (default, Sep 25 2015, 20:17:25) 
[GCC 4.8.4] on netbsd7
Type "help", "copyright", "credits" or "license" for more information.
>>> import socket
>>> hasattr(socket, 'TCP_KEEPIDLE')
True
>>> s = socket.socket()
>>> s.getsockopt(socket.SOL_TCP, socket.TCP_KEEPIDLE)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/pkg/lib/python2.7/socket.py", line 228, in meth
    return getattr(self._sock,name)(*args)
socket.error: [Errno 42] Protocol option not available
>Fix:
	

>Unformatted:
 	
 	



Home | Main Index | Thread Index | Old Index