This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author christian.heimes
Recipients christian.heimes
Date 2016-08-20.16:21:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1471710119.38.0.449496094278.issue27816@psf.upfronthosting.co.za>
In-reply-to
Content
The proto property of a socket object does not reflect the actual protocol of the socket file descriptor:

>>> import socket
>>> SO_PROTOCOL = getattr(socket, 'SO_PROTOCOL', 38)
>>> tcp = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
>>> tcp.proto
0
>>> tcp.getsockopt(socket.SOL_SOCKET, SO_PROTOCOL)
6
>>> socket.getprotobyname('tcp')
6
History
Date User Action Args
2016-08-20 16:21:59christian.heimessetrecipients: + christian.heimes
2016-08-20 16:21:59christian.heimessetmessageid: <1471710119.38.0.449496094278.issue27816@psf.upfronthosting.co.za>
2016-08-20 16:21:59christian.heimeslinkissue27816 messages
2016-08-20 16:21:59christian.heimescreate