Socket timeouts for HTTP connections (httplib)?

Thanos Vassilakis tvassila at siac.com
Thu Apr 3 16:40:28 EST 2003


Don't hack it.

This is easy and usually stable.

Your only possible complications will  be if you are using threads.

thanos



                                                                                                                            
                    Nick Bower                                                                                              
                    <nick_bower at yah       To:     Thanos Vassilakis <tvassila at siac.com>                                     
                    oo.com.au>            cc:                                                                               
                                          Subject:     Re: Socket timeouts for HTTP connections (httplib)?                  
                    04/03/2003                                                                                              
                    02:39 PM                                                                                                
                                                                                                                            
                                                                                                                            




thanks thanos - i'll look at this too.  turns out 2.3 has socket timeouts -
i may be able to hack httplib in some simple way.


 Thanos Vassilakis <tvassila at siac.com> wrote:

 With the httplib I use the classic signal.SIGALRM/signl.alarm combination.

 see the example on signal
 http://www.python.org/doc/current/lib/node216.html

 We use this successfully on the floor of a very big exchange.


 thanos



 -----------------------------------------
 This message and its attachments may contain privileged and confidential
 information. If you are not the intended recipient(s), you are prohibited
 from printing, forwarding, saving or copying this email. If you have
 received this e-mail in error, please immediately notify the sender and
 delete this e-mail and its attachments from your computer.



Yahoo! Mail - For a better Internet experience








-----------------------------------------
This message and its attachments may contain  privileged and confidential information.  If you are not the intended recipient(s), you are prohibited from printing, forwarding, saving or copying this email.  If you have received this e-mail in error, please immediately notify the sender and delete this e-mail and its attachments from your computer.






More information about the Python-list mailing list