[Sugar-devel] [PATCH] Time out on registration process to prevent indefinite UI hang (SL#2289)

Sascha Silbe sascha-ml-reply-to-2010-3 at silbe.org
Wed Sep 8 05:44:14 EDT 2010


Excerpts from Tomeu Vizoso's message of Wed Sep 08 11:00:13 +0200 2010:

> > +class TimeoutHTTP(httplib.HTTP):
> 
> http://docs.python.org/library/httplib.html says:
> 
> Note
> 
> The public interface for this module changed substantially in Python
> 2.0. The HTTP class is retained only for backward compatibility with
> 1.5.2. It should not be used in new code. Refer to the online
> docstrings for usage.
> 
> Have you considered using the non-deprecated APIs?

I originally meant to say that as well, but double-checked the original
code and discovered that xmlrpclib (a stock Python module) uses the same
API internally. There's a good chance that switching to the newer classes
would require reimplementing large parts of xmlrpclib.

Sascha

--
http://sascha.silbe.org/
http://www.infra-silbe.de/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
Url : http://lists.sugarlabs.org/archive/sugar-devel/attachments/20100908/ee413c93/attachment.pgp 


More information about the Sugar-devel mailing list