Forums | Admin

Discussion Forums: help

Start New Thread Start New Thread
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


Thread View

Thread Author Date
Not authenticating correctlyRon Evans2006-11-20 21:42
      RE: Not authenticating correctlyJustin Bailey2006-11-20 22:04
            RE: Not authenticating correctlyRon Evans2006-11-20 22:27
                  RE: Not authenticating correctlyJustin Bailey2006-11-20 23:09
                        RE: Not authenticating correctlyRon Evans2006-11-21 00:02
                              RE: Not authenticating correctlyJustin Bailey2006-11-21 16:29
                                    RE: Not authenticating correctlyRon Evans2006-11-21 21:38
                                          RE: Not authenticating correctlyJustin Bailey2006-11-27 21:38
                                                RE: Not authenticating correctlyRon Evans2006-11-28 19:25
                                                      RE: Not authenticating correctlyJustin Bailey2006-11-28 21:48
                                                            RE: Not authenticating correctlyRon Evans2006-11-28 23:30
                                                                  RE: Not authenticating correctlyJustin Bailey2006-12-01 17:04
                                                                        RE: Not authenticating correctlyRon Evans2006-12-01 18:59
                                                                              RE: Not authenticating correctlyJustin Bailey2006-12-01 19:49

Post a followup to this message