That error message alone is fairly normal, every once in a while. It
sounds like someone clicked on a link but then hit Cancel very quickly.
With the right timing, this error would appear.
When you say "service is refused on the port", does "telnet localhost
8080" (or whatever the port is) work? That would point out whether the
OS-level socket is still listening or not.
-Lex
[EMAIL PROTECTED] wrote:
>
> 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