W3C home > Mailing lists > Public > www-lib@w3.org > January to March 1999

Re: Staus = -902

From: Henrik Frystyk Nielsen <frystyk@w3.org>
Date: Thu, 14 Jan 1999 23:37:22 -0500
To: www-lib@w3.org
Message-ID: <369EC602.9CF6852D@w3.org>
To: olga <olga@goliath.eai.com>

olga wrote:

Excellent analysis - yes I think this is the problem - and the
uncommented line with a bogus parameter seems to indicate this wasn't
quite finished as should have been. I have committed this patch which I
think solves the problem:

	http://dev.w3.org/cgi-bin/cvsweb/libwww/Library/src/HTChannl.c

Please try it out and see what happens.

Thanks!

Henrik

> /////////////////////////////////////////////////////////////////
> 
> In CHChannl : free_channel(..)
> ch->sockfd is set to INVSOC.
> 
>       /* Close the socket */
>         if (ch->sockfd != INVSOC) {
>             NETCLOSE(ch->sockfd);
>             /*      HTEvent_unregister(ch->sockfd, all options); */
>             HTNet_decreaseSocket();
>             if (PROT_TRACE)
>                 HTTrace("Channel..... Deleted %p, socket %d\n", ch,ch->sockfd);
>             ch->sockfd = INVSOC;
> 
> Could this cause the problem? Maybe the socket should be deleted from the fd_set
> also before calling select on this set?
> 
> Thanks,
> 
> Olga Antropova.
Received on Thursday, 14 January 1999 23:37:25 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:18:28 GMT