>From: [EMAIL PROTECTED]
>Date: Thu, 18 Jan 2001 13:46:21 -0500 (EST)
>To: [EMAIL PROTECTED]
>Subject: BOUNCE [EMAIL PROTECTED]: Non-member submission from
>[[EMAIL PROTECTED]]
>
> >From [EMAIL PROTECTED] Thu Jan 18 13:45:54 2001
>Received: from sysa.barnett.sk (sysa.barnett.sk [194.1.129.2])
> by burdell.cc.gatech.edu (8.9.1/8.9.1) with ESMTP id NAA05183;
> Thu, 18 Jan 2001 13:45:40 -0500 (EST)
>From: [EMAIL PROTECTED]
>Received: by sysa.barnett.sk (Postfix, from userid 1000)
> id BDF81468E7; Thu, 18 Jan 2001 19:57:00 +0100 (CET)
>Date: Thu, 18 Jan 2001 19:57:00 +0100
>To: [EMAIL PROTECTED], PWS <[EMAIL PROTECTED]>
>Subject: web server acceptHandler errors
>Message-ID: <[EMAIL PROTECTED]>
>Mime-Version: 1.0
>Content-Type: text/plain; charset=us-ascii
>Content-Disposition: inline
>User-Agent: Mutt/1.2.5i
>
>
>I run squeak 2.8 web server, and sometimes i received in terminal message :
>
>acceptHandler: Connection reset by peer
>
>and squeak is frozen with no service at current port available. So i decide
>to find bug in sources from Ian Piumatra, and found your name...
>Any suggestions or notice will help me and thanks in advance for any answer.
>
>It seems that there is some another state or error in function, but
>maybe i am completely missing something :
>
>static void acceptHandler(privateSocketStruct *pss, int
>errFlag, int readFlag)
>{
> printf("\."); /* i will try to ad more specific debug info here */
>
> aioSuspend(pss);
> FPRINTF(( stderr, "acceptHandler(%d,%d,%d)\n", pss->s, errFlag,
>readFlag));
> if (errFlag)
> {
> /* error during listen() */
> close(pss->s);
> pss->sockState= Unconnected;
> pss->sockError= EBADF; /* educated guess */
> }
> else
> {
> /* accept() is ready */
> int newSock= accept(pss->s, 0, 0);
> aioDisable(pss);
> if (newSock < 0)
> {
> /* error during accept() */
> pss->sockError= errno;
> pss->sockState= Unconnected;
> perror("acceptHandler");
> }
> else
> {
> /* connection accepted */
> pss->sockState= Connected;
> /* aioEnable(pss); *** removed by ikp *** */
> if(pss->multiListen)
> {
> pss->acceptedSock= newSock;
> // aio re-enabled in sqSockAcceptFrom...()
> }
> else
> {
> close(pss->s);
> pss->s= newSock;
> aioEnable(pss); /*** added by ikp ***/
> }
> }
> }
> notify(pss, CONN_NOTIFY);
>}
>
>
>Jan Barger
>
> e-mail: [EMAIL PROTECTED]
>
> resume: http://sysa.barnett.sk:8080/112873459.asHtml
> icq : 70026906
> http://www.barnett.sk
> http://www.napri.sk
--------------------------
Mark Guzdial : Georgia Tech : College of Computing : Atlanta, GA 30332-0280
Associate Professor - Learning Sciences & Technologies.
Collaborative Software Lab - http://coweb.cc.gatech.edu/csl/
(404) 894-5618 : Fax (404) 894-0673 : [EMAIL PROTECTED]
http://www.cc.gatech.edu/gvu/people/Faculty/Mark.Guzdial.html