On Sun, Jul 11, 2010 at 9:06 PM, <span dir="ltr"><<a href="mailto:exarkun@twistedmatrix.com">exarkun@twistedmatrix.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div></div><div class="h5">On 03:11 pm, <a href="mailto:jcea@jcea.es" target="_blank">jcea@jcea.es</a> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<br>
On 13/04/10 04:03, <a href="mailto:exarkun@twistedmatrix.com" target="_blank">exarkun@twistedmatrix.com</a> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 12 Apr, 11:19 pm, <a href="mailto:jcea@jcea.es" target="_blank">jcea@jcea.es</a> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<br>
On 04/13/2010 12:47 AM, Antoine Pitrou wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Jesus Cea <jcea <at> <a href="http://jcea.es" target="_blank">jcea.es</a>> writes:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
PS: "socket.setdefaulttimeout()" is not enough, because it could<br>
shutdown a perfectly functional connection, just because it was idle<br>
for<br>
too long.<br>
</blockquote>
<br>
The socket timeout doesn't shutdown anything. It just puts a limit on<br>
how much<br>
time recv() and send() can block. Then it's up to you to detect<br>
whether the<br>
server is still alive (for example by pinging it through whatever<br>
means the<br>
application protocol gives you).<br>
</blockquote>
<br>
A regular standard library (let say, poplib) would abort, after getting<br>
the timeout exception.<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
4. Modify client libraries to accept a new optional socket-like object<br>
as an optional parameter. This would allow things like transparent<br>
compression or encryption, or to replace the socket connection by<br>
anything else (read/write to shared memory or database, for example).<br>
</blockquote>
<br>
This could be useful too.<br>
</blockquote>
<br>
I have been thinking about this for years. Do you actually think this<br>
could be formally proposed?.<br>
</blockquote>
<br>
Every once in a while I make a little bit more progress on the PEP I'm<br>
working on for this. If you want to talk more about this, you can find<br>
me in #python-dev or #twisted on freenode.<br>
<br>
Jean-Paul<br>
</blockquote>
<br>
Jean-Paul, I would like to have this for 3.2. How is the PEP going?.<br>
</blockquote>
<br></div></div>
It's still little more than an outline. You can see it here:<br>
<br>
<a href="http://twistedmatrix.com/trac/wiki/ProtocolPEP" target="_blank">http://twistedmatrix.com/trac/wiki/ProtocolPEP</a><br>
<br>
And if you're interested in helping, we can figure out a way to do that (you can have edit permission on the wiki or we can move the document elsewhere, whatever).<br>
<br>
Jean-Paul<div><div></div><div class="h5"><br></div></div></blockquote><div><br></div><div>This seems like an interesting idea to me. I would like to figure out some way I could help with the PEP. If you move the document, could you please keep me updated on the new location?</div>
<div><br></div><div>:.:: mattias</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div class="h5">
_______________________________________________<br>
Python-Dev mailing list<br>
<a href="mailto:Python-Dev@python.org" target="_blank">Python-Dev@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/python-dev" target="_blank">http://mail.python.org/mailman/listinfo/python-dev</a><br>
Unsubscribe: <a href="http://mail.python.org/mailman/options/python-dev/thebrasse%40brasse.org" target="_blank">http://mail.python.org/mailman/options/python-dev/thebrasse%40brasse.org</a><br>
</div></div></blockquote></div><br>