- From: Henrik Frystyk Nielsen <frystyk@w3.org>
- Date: Thu, 14 Jan 1999 23:37:22 -0500
- To: www-lib@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 UTC