[issue6560] socket sendmsg(), recvmsg() methods

2012-04-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset e64bec91ac91 by Richard Oudkerk in branch 'default': Issue #14669: Skip multiprocessing connection pickling test on MacOSX http://hg.python.org/cpython/rev/e64bec91ac91 -- ___ Python tracker

[issue6560] socket sendmsg(), recvmsg() methods

2011-09-14 Thread Andrew Grover
Changes by Andrew Grover : -- nosy: -Andrew.Grover ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue6560] socket sendmsg(), recvmsg() methods

2011-09-12 Thread Nick Coghlan
Nick Coghlan added the comment: The feature patch for sendmsg/recvmsg support came with a swathe of new tests, and the failures are in those new tests rather than anything breaking in the old ones. As Charles-François noted though, it doesn't look like the feature implementation itself is do

[issue6560] socket sendmsg(), recvmsg() methods

2011-09-12 Thread Bill Janssen
Bill Janssen added the comment: I'm guessing these things are due to interaction with some Apple security update, as the buildbots were working well 8 months ago. Bill On Wed, Sep 7, 2011 at 4:01 PM, Nick Coghlan wrote: > > Nick Coghlan added the comment: > > If Bill gets a chance to investi

[issue6560] socket sendmsg(), recvmsg() methods

2011-09-10 Thread Nick Coghlan
Nick Coghlan added the comment: Closing the feature request as complete. The remaining Mac OS X buildbot issues now have their own tracker item: #12958 -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed superseder: -> test_socket failures on Mac O

[issue6560] socket sendmsg(), recvmsg() methods

2011-09-10 Thread Michael Schurter
Changes by Michael Schurter : -- nosy: +schmichael ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue6560] socket sendmsg(), recvmsg() methods

2011-09-09 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue6560] socket sendmsg(), recvmsg() methods

2011-09-07 Thread Nick Coghlan
Nick Coghlan added the comment: If Bill gets a chance to investigate this before the weekend, great, otherwise my plan to stop making noise in the buildbot results will be to: 1. Create a separate issue specifically for the errors reported by the Mac OS X buildbots (allowing the problem to be

[issue6560] socket sendmsg(), recvmsg() methods

2011-09-02 Thread Bill Janssen
Bill Janssen added the comment: I'll take a look at this next week, when I'm more on-line again. Bill 2011/8/25 Charles-François Natali : > > Charles-François Natali added the comment: > >> The OS X buildbots show some failures: > > It seems to fail consistently on every OS X version. > I've

[issue6560] socket sendmsg(), recvmsg() methods

2011-09-01 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: -haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue6560] socket sendmsg(), recvmsg() methods

2011-08-31 Thread Brett Cannon
Changes by Brett Cannon : -- nosy: +brett.cannon resolution: fixed -> stage: committed/rejected -> needs patch ___ Python tracker ___

[issue6560] socket sendmsg(), recvmsg() methods

2011-08-27 Thread Nick Coghlan
Nick Coghlan added the comment: Putting this back to open until we decide what to do about the OS X test failures. It sounds like it could really do with some more poking and prodding to figure out whether or not it poses a potential security risk or is just a relatively cosmetic problem with

[issue6560] socket sendmsg(), recvmsg() methods

2011-08-25 Thread Charles-François Natali
Charles-François Natali added the comment: > The OS X buildbots show some failures: It seems to fail consistently on every OS X version. I've had another look both at the code and the test, and couldn't find anything wrong with it. Since there are a number of known bugs pertaining to FD passin

[issue6560] socket sendmsg(), recvmsg() methods

2011-08-24 Thread David Watson
David Watson added the comment: On Tue 23 Aug 2011, Nick Coghlan wrote: > As you can see, I just pushed a change that removed the new > methods from SSLSocket objects. If anyone wants to step up with > a valid use case (not already covered by wrap_socket), > preferably with a patch to add them b

[issue6560] socket sendmsg(), recvmsg() methods

2011-08-24 Thread Charles-François Natali
Charles-François Natali added the comment: As noted by Antoine, the OS X 10.5 buildbots are also failing. -- ___ Python tracker ___ __

[issue6560] socket sendmsg(), recvmsg() methods

2011-08-24 Thread Charles-François Natali
Charles-François Natali added the comment: Here's a patch skipping testFDPassSeparate and testFDPassSeparateMinSpace on OS X < 10.5, due to known kernel bugs (see http://developer.apple.com/library/mac/#qa/qa1541/_index.html). For InterruptedSendTimeoutTest and testInterruptedSendmsgTimeout, it

[issue6560] socket sendmsg(), recvmsg() methods

2011-08-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: The OS X buildbots show some failures: http://www.python.org/dev/buildbot/all/builders/AMD64%20Snow%20Leopard%202%203.x -- ___ Python tracker __

[issue6560] socket sendmsg(), recvmsg() methods

2011-08-23 Thread Nick Coghlan
Nick Coghlan added the comment: And the Windows buildbots are now happy (at least with respect to this change, anyway - they're still griping about a few other issues). I don't know if it's feasible to support these new APIs at the socket module level on Windows, but any patches along those l

[issue6560] socket sendmsg(), recvmsg() methods

2011-08-23 Thread Nick Coghlan
Nick Coghlan added the comment: Regarding the 'missing methods' aspect, the SSL docs are already pretty clear that SSLSocket objects don't expose the full socket API: http://docs.python.org/dev/library/ssl#ssl-sockets Those docs are actually what really got me started down the path of wonderi

[issue6560] socket sendmsg(), recvmsg() methods

2011-08-23 Thread Nick Coghlan
Nick Coghlan added the comment: As you can see, I just pushed a change that removed the new methods from SSLSocket objects. If anyone wants to step up with a valid use case (not already covered by wrap_socket), preferably with a patch to add them back that includes proper tests and documentat

[issue6560] socket sendmsg(), recvmsg() methods

2011-08-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset fd10d042b41d by Nick Coghlan in branch 'default': Remove the SSLSocket versions of sendmsg/recvmsg due to lack of proper tests and documentation in conjunction with lack of any known use cases (see issue #6560 for details) http://hg.python.org/cpy

[issue6560] socket sendmsg(), recvmsg() methods

2011-08-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: > That's the part I'm questioning though. I'm not clear why you'd ever do > that instead of doing everything on the original socket before invoking > ssl.wrap_socket. > > What I missed on the original patch before committing it (mea culpa) is > that the SSL

[issue6560] socket sendmsg(), recvmsg() methods

2011-08-23 Thread Nick Coghlan
Nick Coghlan added the comment: That's the part I'm questioning though. I'm not clear why you'd ever do that instead of doing everything on the original socket before invoking ssl.wrap_socket. What I missed on the original patch before committing it (mea culpa) is that the SSL part is neithe

[issue6560] socket sendmsg(), recvmsg() methods

2011-08-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: > However, in doing this, I noticed that these methods will, at best, > work during the time between connection and the socket going secure > and were not added to the list of methods that the SSL is documented > as exposing. Perhaps we should just ditch them en

[issue6560] socket sendmsg(), recvmsg() methods

2011-08-23 Thread Charles-François Natali
Charles-François Natali added the comment: > However, in doing this, I noticed that these methods will, at best, work > during the time between connection and the socket going secure and were not > added to the list of methods that the SSL is documented as exposing. Perhaps > we should just d

[issue6560] socket sendmsg(), recvmsg() methods

2011-08-22 Thread Nick Coghlan
Nick Coghlan added the comment: Attached patch (ssl_fixes_v1) makes the presence of the sendmsg/recvmsg methods in the ssl module conditional on their being present in the underlying socket module. However, in doing this, I noticed that these methods will, at best, work during the time betwe

[issue6560] socket sendmsg(), recvmsg() methods

2011-08-22 Thread Nick Coghlan
Nick Coghlan added the comment: Reopening to track buildbot failures (at least on Windows) - at a glance, it looks like the SSL socket wrapper is still adding (and trying to test) the send/receivemsg methods even when they're missing from the socket object on the current platform. --

[issue6560] socket sendmsg(), recvmsg() methods

2011-08-22 Thread Nick Coghlan
Nick Coghlan added the comment: Someone here at the sprints pointed out a redundant unsigned comparison to 0 that I missed, so a second set of eyes to double-check things like that would be good. -- ___ Python tracker

[issue6560] socket sendmsg(), recvmsg() methods

2011-08-22 Thread Charles-François Natali
Charles-François Natali added the comment: > New changeset c64216addd7f by Nick Coghlan in branch 'default': > Add support for the send/recvmsg API to the socket module. Patch by David > Watson and Heiko Wundram. (Closes #6560) > http://hg.python.org/cpython/rev/c64216addd7f > I had actually s

[issue6560] socket sendmsg(), recvmsg() methods

2011-08-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 37721ee145a2 by Nick Coghlan in branch 'default': Credit patch authors in NEWS for #6560 http://hg.python.org/cpython/rev/37721ee145a2 -- ___ Python tracker __

[issue6560] socket sendmsg(), recvmsg() methods

2011-08-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset c64216addd7f by Nick Coghlan in branch 'default': Add support for the send/recvmsg API to the socket module. Patch by David Watson and Heiko Wundram. (Closes #6560) http://hg.python.org/cpython/rev/c64216addd7f -- nosy: +python-dev resolut

[issue6560] socket sendmsg(), recvmsg() methods

2011-08-21 Thread Brian May
Changes by Brian May : -- nosy: +ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue6560] socket sendmsg(), recvmsg() methods

2011-06-05 Thread Brian May
Brian May added the comment: To address some of the comments above: * Yes, the patch is large. However, most of this is in the tests. Only A relatively small part is in the code that implements the required functionality. I don't care much myself about the test cases, however would have assu

[issue6560] socket sendmsg(), recvmsg() methods

2011-06-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: > > What needs to happen to get recvmsg() supported in Python? > > Well, I guess that the only reason is that no committer is motivated > enough to bring this into Python: it's a rather large patch, and > honestly, I'm not sure that many people are going to use

[issue6560] socket sendmsg(), recvmsg() methods

2011-05-31 Thread Charles-François Natali
Charles-François Natali added the comment: > What needs to happen to get recvmsg() supported in Python? Well, I guess that the only reason is that no committer is motivated enough to bring this into Python: it's a rather large patch, and honestly, I'm not sure that many people are going to use

[issue6560] socket sendmsg(), recvmsg() methods

2011-05-30 Thread Brian May
Brian May added the comment: Have tested my code with this patch, the recvmsg(...) call seems to work fine. Also had a half-hearted attempt at porting to Python 2.7, but didn't get past compiling, the code requires BEGIN_SELECT_LOOP and END_SELECT_LOOP macros that aren't defined in Python 2.7

[issue6560] socket sendmsg(), recvmsg() methods

2011-05-24 Thread Gergely Kálmán
Gergely Kálmán added the comment: No, indeed this is a lot better. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue6560] socket sendmsg(), recvmsg() methods

2011-05-23 Thread Brian May
Brian May added the comment: Hello, Are there any problems applying the v5 version of the patch to 3.3? Also is there any remote chance for a backport to 2.7? Thanks -- ___ Python tracker ___

[issue6560] socket sendmsg(), recvmsg() methods

2011-05-23 Thread David Watson
David Watson added the comment: On Mon 23 May 2011, Gergely Kálmán wrote: > It's been a while I had a look at that code. As far as I remember though > the code is fairly decent not > taking the missing unit tests into account. There are a few todos, and > also a pretty bad bug that I've fixed

[issue6560] socket sendmsg(), recvmsg() methods

2011-05-23 Thread Gergely Kálmán
Gergely Kálmán added the comment: On 05/22/11 03:14, Brian May wrote: > Brian May added the comment: > > What needs to happen to get recvmsg() supported in Python? > > recvmsg() is required to get get transparent UDP proxies working under Linux > using tproxy, the code needs to run recvmsg() t

[issue6560] socket sendmsg(), recvmsg() methods

2011-05-22 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +charles-francois.natali, rosslagerwall versions: +Python 3.3 -Python 3.2 ___ Python tracker ___ _

[issue6560] socket sendmsg(), recvmsg() methods

2011-05-21 Thread Brian May
Brian May added the comment: What needs to happen to get recvmsg() supported in Python? recvmsg() is required to get get transparent UDP proxies working under Linux using tproxy, the code needs to run recvmsg() to be able to find out what the original destination address was for the the packe

[issue6560] socket sendmsg(), recvmsg() methods

2010-06-13 Thread David Watson
David Watson added the comment: Optional patch to replace SocketTCPTest, etc. with the classes from the sendmsg patch. -- Added file: http://bugs.python.org/file17660/v4-replace-existing-classes.diff ___ Python tracker

[issue6560] socket sendmsg(), recvmsg() methods

2010-06-13 Thread David Watson
David Watson added the comment: New version with minor changes. Will also upload at http://codereview.appspot.com/1487041/show -- Added file: http://bugs.python.org/file17659/baikie-hwundram-v4.diff ___ Python tracker

[issue6560] socket sendmsg(), recvmsg() methods

2010-06-02 Thread David Watson
David Watson added the comment: OK. I don't like creating/using a Google account, but here it is: http://codereview.appspot.com/1487041/show -- ___ Python tracker ___ _

[issue6560] socket sendmsg(), recvmsg() methods

2010-05-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: Would you like to upload your patch to http://codereview.appspot.com/? It would make reviewing easier. -- nosy: +pitrou ___ Python tracker ___

[issue6560] socket sendmsg(), recvmsg() methods

2010-05-30 Thread Andrew Grover
Changes by Andrew Grover : -- nosy: +Andrew.Grover ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue6560] socket sendmsg(), recvmsg() methods

2010-05-28 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +haypo stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue6560] socket sendmsg(), recvmsg() methods

2010-05-28 Thread David Watson
David Watson added the comment: Here is a new version of the patch; I've added some tests which use the RFC 3542 interface (IPv6 advanced API) and am now quite happy with it generally. As well as Linux, I've tested it on an old (unsupported) FreeBSD 5.3 installation, which required a few change

[issue6560] socket sendmsg(), recvmsg() methods

2010-04-28 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue6560] socket sendmsg(), recvmsg() methods

2010-04-27 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +exarkun ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue6560] socket sendmsg(), recvmsg() methods

2010-03-03 Thread David Watson
David Watson added the comment: I just found that the IPv6 tests don't get skipped when IPv6 is available but disabled in the build - you can create IPv6 sockets, but not use them :/ This version fixes the problem. -- Added file: http://bugs.python.org/file16422/baikie-hwundram-v2.1.di

[issue6560] socket sendmsg(), recvmsg() methods

2010-03-02 Thread David Watson
David Watson added the comment: OK, here's a new version as a work in progress. A lot of the new stuff is uncommented (particularly the support code for the tests), but there are proper docs this time and a fairly complete test suite (but see below). There are a couple of changes to the interf

[issue6560] socket sendmsg(), recvmsg() methods

2010-02-28 Thread David Watson
David Watson added the comment: Thanks for your interest! I'm actually still working on the patch I posted, docs and a test suite, and I'll post something soon. Yes, you could just use b"".join() with sendmsg() (and get slightly annoyed because it doesn't accept buffers ;) ). I made sendmsg()

[issue6560] socket sendmsg(), recvmsg() methods

2010-02-23 Thread Jack Diederich
Jack Diederich added the comment: one of the other sprinters just pointed out that Modules/_multiprocessing.c (py3k branch) uses sendmsg/recvmsg internally to pass file descriptors back and forth. The code is very short and readable. -- ___ Python

[issue6560] socket sendmsg(), recvmsg() methods

2010-02-23 Thread Jack Diederich
Jack Diederich added the comment: Additional data point: the perl version takes a single scalar (instead of a list of scalars) for use with sendmsg() http://search.cpan.org/~MJP/Socket-MsgHdr-0.01/MsgHdr.pm -- ___ Python tracker

[issue6560] socket sendmsg(), recvmsg() methods

2010-02-23 Thread Jack Diederich
Jack Diederich added the comment: I've been digging into the patch. Is there a reason sendmsg() wants an iterable of buffers instead of just accepting a str? The list-of-buffers more closely matches the underlying syscall but I'm not sure what the python benefit is, especially when recvmsg()

[issue6560] socket sendmsg(), recvmsg() methods

2010-02-23 Thread Wim
Wim added the comment: I just ran across yet another implementation of sendmsg support for python sockets, whose feature set seems to complement Kalman Gergely's implementation: http://www.pps.jussieu.fr/~ylg/PyXAPI by Yves Legrandgerard (Out of curiosity, people have been submitting reques

[issue6560] socket sendmsg(), recvmsg() methods

2009-12-14 Thread David Watson
David Watson added the comment: Hi, I'm afraid there may have been some duplication of effort here - I set about reworking Heiko Wundram's original patch (issue #1194378) without knowing about this one. I don't have unit tests yet either, but I saw this and thought I'd better post what I had.

[issue6560] socket sendmsg(), recvmsg() methods

2009-07-24 Thread Thomas Herve
Thomas Herve added the comment: This is a duplicate (although updated patch) from bug #1194378. It would still need unit tests... -- nosy: +therve ___ Python tracker ___

[issue6560] socket sendmsg(), recvmsg() methods

2009-07-24 Thread Kálmán Gergely
Kálmán Gergely added the comment: the tester application -- Added file: http://bugs.python.org/file14557/sendrecvmsgtest.py ___ Python tracker ___ ___

[issue6560] socket sendmsg(), recvmsg() methods

2009-07-24 Thread Kálmán Gergely
New submission from Kálmán Gergely : This is the rewritten-from-scratch implementation of the sendmsg()/recvmsg() methods. Any comments / suggestions / flames are very welcome. Currently it supports what I need and I'm only releasing it because I don't have much time to develop it further in the