Login | Register
My pages Projects Community openCollabNet

Discussions > users > Re: [maxq-users] Connection reset by peer

maxq
Discussion topic

Back to topic list

Re: [maxq-users] Connection reset by peer

Author Stephen Rufle <srufle at salmonllc dot com>
Full name Stephen Rufle <srufle at salmonllc dot com>
Date 2004-10-18 10:58:08 PDT
Message New error
INFO: browser stopped listening: Connection reset by peer: socket write
error
java.io.IOException: unterminated line in request header
    at
com.bitmechanic.maxq​.HttpRequestHeader.r​eadLine(HttpRequestH​eader.java:189)
    at
com.bitmechanic.maxq​.HttpRequestHeader.​<init>(HttpRequ​estHeader.java:106)
    at
com.bitmechanic.maxq​.RequestHandler.init​ClientServerConnecti​ons(RequestHandler.j​ava:42)
    at com.bitmechanic.maxq​.RequestHandler.run(​RequestHandler.java:​138)
    at java.lang.Thread.run(Unknown Source)
Oct 18, 2004 10:50:01 AM com.bitmechanic.maxq​.RequestHandler run

I also had to changed line 237 and 248 the server socket was null at
some point. I suspect that these issues are specific to IE , since in
previous posts you do not get these problems using a superior broswer
like Safari :)
// We used not to close serverSocket. A comment said:
                // //the server should close its socket
                // //automatically
                // However they did not _appear_ to be closing, and this
does
                // not surprise me because we are probably passing
Keep-Alive
                // headers through to the server. oliverbock
               
               
                if ( serverSocket != null)
                {
                serverSocket.close();
                log.trace("closed server socket");
                }
                else
                {
                     log.trace("serverSocket was null");
                }
       
                //close the client connection
                if ( clientSocket != null)
                {
                clientSocket.close();
                log.trace("closed client socket");
                }
                else
                {
                     log.trace("clientSocket was null");
                }

> On 15/10/2004, at 14:43, Stephen Rufle wrote:
>
>> OK that made it better I still got an exception
>>
>> I fixed by adding...
>
>
> You only needed to make that change because I did not properly abort
> the request when I changed MaxQ this morning. I've fixed that now so
> if you update your code from CVS you should be able to remove your fix.
>
>> goto http://www.fujifilm.​com/JSP/fuji/epartne​rs/index.jsp
>> there are some dropdown menus open a new browser after starting to
>> record a compact script (probably does not matter compact or
>> standard) and rollover the flyout , do it enough and you should get
>> "Connection reset" error box in GUI and the following stack trace
>>
>> INFO: browser stopped listing: Connection reset by peer: socket
>> write error
>> java.net.SocketException: Connection reset
>> at java.net.SocketInput​Stream.read(Unknown Source)
>> at sun.nio.cs.StreamDec​oder$CharsetSD.read​Bytes(Unknown
>> Source)
>> at sun.nio.cs.StreamDec​oder$CharsetSD.impl​Read(Unknown Source)
>> at sun.nio.cs.StreamDec​oder.read(Unknown Source)
>> at java.io.InputStreamR​eader.read(Unknown Source)
>> at java.io.BufferedRead​er.fill(Unknown Source)
>> at java.io.BufferedRead​er.readLine(Unknown Source)
>> at java.io.BufferedRead​er.readLine(Unknown Source)
>> at
>> com.bitmechanic.maxq​.HttpRequestHeader.​<init>(HttpRequ​estHeader.java:
>> 76)
>> at
>> com.bitmechanic.maxq​.RequestHandler.init​ClientServerConnecti​ons(Request
>> Handler.java:48)
>> at
>> com.bitmechanic.maxq​.RequestHandler.run(​RequestHandler.java:​136)
>> at java.lang.Thread.run(Unknown Source)
>> Oct 14, 2004 9:33:58 PM com.bitmechanic.maxq​.RequestHandler run
>> INFO: browser stopped listing: Connection reset by peer: socket
>> write error
>
>
> This stack trace shows an error at HttpRequestHeader.java line 76,
> which is a comment in the version of that file that is in CVS. Are
> you using the version from CVS?
>
> I cannot reproduce your error here because my browser (Safari on Mac
> OS X) produces no HTTP requests for these rollovers. However it
> looks like your browser is aborting the request half-way through
> writing the headers to MaxQ. I suppose that this is a reasonable
> thing to do if the browser decides it no longer wants the page so I
> have changed MaxQ to be similarly quiet in these situations. Please
> tell me if it helps.
>
>
> Oliver
>
>
> --------------------​--------------------​--------------------​---------
> To unsubscribe, e-mail: users-unsubscribe@ma​xq.tigris.org
> For additional commands, e-mail: users-help at maxq dot tigris dot org
>
>
>


--
Stephen P Rufle
srufle at salmonllc dot com
H:480-802-7173
Yahoo IM: stephen_rufle
AOL IM: stephen0rufle


--------------------​--------------------​--------------------​---------
To unsubscribe, e-mail: users-unsubscribe@ma​xq.tigris.org
For additional commands, e-mail: users-help at maxq dot tigris dot org

« Previous message in topic | 10 of 11 | Next message in topic »

Messages

Show all messages in topic

[maxq-users] Connection reset by peer Stephen Rufle <srufle at salmonllc dot com> Stephen Rufle <srufle at salmonllc dot com> 2004-10-14 11:10:29 PDT
     Re: [maxq-users] Connection reset by peer oliverbock Oliver Bock 2004-10-14 16:06:25 PDT
         Re: [maxq-users] Connection reset by peer Stephen Rufle <srufle at salmonllc dot com> Stephen Rufle <srufle at salmonllc dot com> 2004-10-14 16:54:19 PDT
             Re: [maxq-users] Connection reset by peer oliverbock Oliver Bock 2004-10-14 17:02:06 PDT
                 Re: [maxq-users] Connection reset by peer fcohen Frank Cohen 2004-10-14 21:23:13 PDT
                     Re: [maxq-users] Connection reset by peer oliverbock Oliver Bock 2004-10-14 21:31:14 PDT
                         Re: [maxq-users] Connection reset by peer fcohen Frank Cohen 2004-10-14 21:49:25 PDT
                 Re: [maxq-users] Connection reset by peer Stephen Rufle <srufle at salmonllc dot com> Stephen Rufle <srufle at salmonllc dot com> 2004-10-14 21:43:25 PDT
                     Re: [maxq-users] Connection reset by peer oliverbock Oliver Bock 2004-10-14 22:28:46 PDT
                         Re: [maxq-users] Connection reset by peer Stephen Rufle <srufle at salmonllc dot com> Stephen Rufle <srufle at salmonllc dot com> 2004-10-18 10:58:08 PDT
                             Re: [maxq-users] Connection reset by peer oliverbock Oliver Bock 2004-10-18 15:55:36 PDT
Messages per page: