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.

classification
Title: fromfd() and socketpair() should return wrapped sockets
Type: enhancement Stage: resolved
Components: Library (Lib) Versions: Python 3.2
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: BreamoreBoy, georg.brandl, giampaolo.rodola, pitrou, therve, ts1
Priority: normal Keywords: easy, patch

Created on 2007-12-04 03:38 by ts1, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
fromfd_sockpair.patch ts1, 2007-12-04 03:38
1552_test_socket.diff therve, 2007-12-04 14:04
Messages (5)
msg58172 - (view) Author: Takeshi Sone (ts1) Date: 2007-12-04 03:38
socket() returns socket object wrapped by Python code, but fromfd() and
socketpair() return raw object. This results in behaviour differences
between sockets.
Attached patch fixes it.
msg58186 - (view) Author: Thomas Herve (therve) * Date: 2007-12-04 14:04
This is a nice enhancement. I attach a quick patch to add tests for that.
msg110593 - (view) Author: Mark Lawrence (BreamoreBoy) * Date: 2010-07-17 18:34
The attached patch files are small and look ok to me.  Could someone with socket experience please give a yes or no.
msg114969 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2010-08-26 12:52
fromfd is already taken care of in 3.2. Otherwise, this looks like a good fix once updated to trunk.
msg116415 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2010-09-14 18:00
socketpair() was fixed in 3.x in r84813.
History
Date User Action Args
2022-04-11 14:56:28adminsetgithub: 45893
2010-09-14 18:00:27pitrousetstatus: open -> closed
resolution: fixed
messages: + msg116415

stage: patch review -> resolved
2010-09-14 15:34:15pitrousetnosy: + pitrou
2010-08-26 13:06:12giampaolo.rodolasetnosy: + giampaolo.rodola
2010-08-26 12:52:46georg.brandlsetnosy: + georg.brandl
messages: + msg114969
2010-07-17 18:34:45BreamoreBoysetnosy: + BreamoreBoy

messages: + msg110593
versions: - Python 2.7
2009-05-12 15:36:13ajaksu2setstage: patch review
type: behavior -> enhancement
versions: + Python 2.7, Python 3.2, - Python 2.6, Python 2.5
2008-01-20 19:55:11christian.heimessetpriority: normal
keywords: + patch, easy
versions: - Python 2.4
2007-12-04 14:04:53thervesetfiles: + 1552_test_socket.diff
nosy: + therve
messages: + msg58186
2007-12-04 03:38:15ts1create