Re: [Python-Dev] Getting an optional parameter instead of creating a socket internally

2010-07-12 Thread Mattias Brändström
On Sun, Jul 11, 2010 at 9:06 PM, exar...@twistedmatrix.com wrote: On 03:11 pm, j...@jcea.es wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 13/04/10 04:03, exar...@twistedmatrix.com wrote: On 12 Apr, 11:19 pm, j...@jcea.es wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1

Re: [Python-Dev] Getting an optional parameter instead of creating a socket internally

2010-07-12 Thread exarkun
On 12:30 pm, thebra...@brasse.org wrote: On Sun, Jul 11, 2010 at 9:06 PM, exar...@twistedmatrix.com wrote: It's still little more than an outline. You can see it here: http://twistedmatrix.com/trac/wiki/ProtocolPEP And if you're interested in helping, we can figure out a way to do that

Re: [Python-Dev] Getting an optional parameter instead of creating a socket internally

2010-07-11 Thread Jesus Cea
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 13/04/10 04:03, exar...@twistedmatrix.com wrote: On 12 Apr, 11:19 pm, j...@jcea.es wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 04/13/2010 12:47 AM, Antoine Pitrou wrote: Jesus Cea jcea at jcea.es writes: PS:

Re: [Python-Dev] Getting an optional parameter instead of creating a socket internally

2010-07-11 Thread exarkun
On 03:11 pm, j...@jcea.es wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 13/04/10 04:03, exar...@twistedmatrix.com wrote: On 12 Apr, 11:19 pm, j...@jcea.es wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 04/13/2010 12:47 AM, Antoine Pitrou wrote: Jesus Cea jcea at jcea.es

Re: [Python-Dev] Getting an optional parameter instead of creating a socket internally

2010-04-13 Thread Nick Coghlan
Jesus Cea wrote: On 04/13/2010 12:47 AM, Antoine Pitrou wrote: Jesus Cea jcea at jcea.es writes: 4. Modify client libraries to accept a new optional socket-like object as an optional parameter. This would allow things like transparent compression or encryption, or to replace the socket

[Python-Dev] Getting an optional parameter instead of creating a socket internally (was: Re: stdlib socket usage and quot; keepalivequot; )

2010-04-12 Thread Jesus Cea
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 04/13/2010 12:47 AM, Antoine Pitrou wrote: Jesus Cea jcea at jcea.es writes: PS: socket.setdefaulttimeout() is not enough, because it could shutdown a perfectly functional connection, just because it was idle for too long. The socket

Re: [Python-Dev] Getting an optional parameter instead of creating a socket internally (was: Re: stdlib socket usage and quot; keepalivequot; )

2010-04-12 Thread Guido van Rossum
On Mon, Apr 12, 2010 at 4:19 PM, Jesus Cea j...@jcea.es wrote: On 04/13/2010 12:47 AM, Antoine Pitrou wrote: Jesus Cea jcea at jcea.es writes: PS: socket.setdefaulttimeout() is not enough, because it could shutdown a perfectly functional connection, just because it was idle for too long.

Re: [Python-Dev] Getting an optional parameter instead of creating a socket internally (was: Re: stdlib socket usage and quot; keepalivequot; )

2010-04-12 Thread exarkun
On 12 Apr, 11:19 pm, j...@jcea.es wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 04/13/2010 12:47 AM, Antoine Pitrou wrote: Jesus Cea jcea at jcea.es writes: PS: socket.setdefaulttimeout() is not enough, because it could shutdown a perfectly functional connection, just because it