| Message: 15436 |
 |
BY: Justin Bailey (m4dc4p) DATE: 2006-11-27 21:38 SUBJECT: RE: Not authenticating correctly Ron,
Sorry for the long delay. Unfortunately I'm not quite sure what's going on with the library in your environment. It appears that the exception is caused by trying to read from a empty socket. It happens inside this loop:
begin
res = HTTPResponse.read_new(@socket)
end while res.kind_of?(HTTPContinue)
which means, basically, read from the socket until the server says to stop. If you want to hack the library a little, try replacing it with this code:
begin
res = HTTPResponse.read_new(@socket)
rescue
break
end while res.kind_of?(HTTPContinue)
Which will just stop the loop if an error occurs. If that works for you, I'll patch it into the library. Let me know!
Justin | |