Re: [Web-SIG] httplib.HTTPConnection and Broken Pipe

2007-04-26 Thread Robert Brewer
Bart Whiteley wrote: > On Wed, 2007-04-25 at 23:30 -0300, Sidnei da Silva wrote: > > Subclass HTTPConnection and implement your own send()? > > Yes. That seemed to be the best (or only) solution. I believe anyone > using HTTPConnection for a POST where authentication may be required > will have

Re: [Web-SIG] httplib.HTTPConnection and Broken Pipe

2007-04-26 Thread Bart Whiteley
On Wed, 2007-04-25 at 23:30 -0300, Sidnei da Silva wrote: > Subclass HTTPConnection and implement your own send()? Yes. That seemed to be the best (or only) solution. I believe anyone using HTTPConnection for a POST where authentication may be required will have to do the same thing. > > On 4

Re: [Web-SIG] httplib.HTTPConnection and Broken Pipe

2007-04-25 Thread Sidnei da Silva
Subclass HTTPConnection and implement your own send()? On 4/25/07, Bart Whiteley <[EMAIL PROTECTED]> wrote: > I have an issue with the following code in > httplib.HTTPConnection.send(): > > # send the data to the server. if we get a broken pipe, > # then close the socket. we want t

[Web-SIG] httplib.HTTPConnection and Broken Pipe

2007-04-25 Thread Bart Whiteley
I have an issue with the following code in httplib.HTTPConnection.send(): # send the data to the server. if we get a broken pipe, # then close the socket. we want to reconnect when # somebody tries to send again. # # NOTE: we DO propagate the error, thoug