You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by di...@apache.org on 2001/07/13 23:25:50 UTC

cvs commit: apache-1.3/src/main http_main.c

dirkx       01/07/13 14:25:50

  Modified:    src/main http_main.c
  Log:
  Added the ENOPROTOOPT ent suggested by Ryan. Although
  we propably need to hunt around on FreeBSD; as some
  intermediate releases might have given a different Eno.
  But then again those where on the current track. So they
  are safe to ignore.
  
  Revision  Changes    Path
  1.544     +2 -2      apache-1.3/src/main/http_main.c
  
  Index: http_main.c
  ===================================================================
  RCS file: /home/cvs/apache-1.3/src/main/http_main.c,v
  retrieving revision 1.543
  retrieving revision 1.544
  diff -u -u -r1.543 -r1.544
  --- http_main.c	2001/07/13 07:32:48	1.543
  +++ http_main.c	2001/07/13 21:25:47	1.544
  @@ -3450,8 +3450,8 @@
   	struct accept_filter_arg af = {
   	    ACCEPT_FILTER_NAME, ""
   	};
  -	if (setsockopt(s, SOL_SOCKET, SO_ACCEPTFILTER, &af, sizeof(af)) < 0
  -	    && errno != ENOENT) {
  +	if ((setsockopt(s, SOL_SOCKET, SO_ACCEPTFILTER, &af, sizeof(af)) < 0)
  +            && (errno != ENOENT) && (errno != ENOPROTOOPT)) {
   	    ap_log_error(APLOG_MARK, APLOG_WARNING, server_conf,
   			 "make_sock: for %s, setsockopt: (SO_ACCEPTFILTER)",
   			 addr);