httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc Slemko <ma...@znep.com>
Subject Re: cvs commit: apache/src CHANGES http_main.c
Date Wed, 12 Feb 1997 00:48:00 GMT
Is the fcntl 100% portable?  Should it be wrapped in an ifdef FNDELAY?

On Tue, 11 Feb 1997, Roy Fielding wrote:

>   --- 322,335 ----
>     
>         kill_timeout(r);     /* Remove any leftover timeouts */
>     
>   !     /* Close our half of the connection --- send client a FIN and
>   !      * set the socket to non-blocking for later reads.
>   !      */
>     
>   !     if (((shutdown(sd, 1)) != 0) || (fcntl(sd, F_SETFL, FNDELAY) == -1)) {
>     	/* if it fails, no need to go through the rest of the routine */
>   ! 	if (errno != ENOTCONN)
>   ! 	    log_unixerr("shutdown", NULL, "lingering_close", r->server);
>     	close(sd);
>     	return;


Mime
View raw message