httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rob Hartill <r...@imdb.com>
Subject apache patch (fwd)
Date Wed, 17 Apr 1996 13:54:23 GMT

Not acked. Looks interesting.


From: Hypnos <root@norden1.com>
Message-Id: <199604171202.IAA01744@norden1.com>
Subject: apache patch (fwd)
To: apache-bugs@apache.org
Date: Wed, 17 Apr 1996 08:02:18 -0400 (EDT)
Cc: kim@tac.nyc.ny.us (Kimmo Suominen)
Precedence: airmail
X-Class: fast
X-Mailer: ELM [version 2.4 PL23]
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-Length: 2900      


 When I applied Kim's patches, below, I was then able to run 1.0.3
on

Dell SVR4, 2.2.1

without it truncating pages.  Why isn't this in your current source code,
which I dld'ed some days ago???

    Joseph Urban

-----


In our previous episode, Kimmo Suominen said:
 From kim@tac.nyc.ny.us Mon Apr 15 19:02:36 1996
 Message-Id: <199604152303.TAA04518@grendel.gw.com>
 To: root@norden1.com
 Subject: apache patch
 X-Face: dJ`"\|-Z6bKup3nm*Th75RV`!T)~xXMZKQt6|%BR~9'A7WzN"rsq4Cv+T~Hg9YRb^oEmVxz
  I0s1&A|(:ISoQJus6s<%pssRki3x*Kf;3BL;Gyq3'>06R>R`Om_ILkJAizKL{AC::|UE/N)u}*Ix}s
  nn{eh=0Um[!yF@gn-JN.6AB+xy5$Biy5I?)T~i#-C^m>vy(!(S*'m}M[>5uvbWcm
 MIME-Version: 1.0
 Content-Type: text/plain; charset="us-ascii"
 Content-ID: <4514.829609416.1@grendel.gw.com>
 Date: Mon, 15 Apr 1996 19:03:36 -0400
 From: Kimmo Suominen <kim@tac.nyc.ny.us>
 
 Index: http_main.c
 ===================================================================
 RCS file: /home/grendel/cvs/apache/src/http_main.c,v
 retrieving revision 1.1.1.1
 diff -u -r1.1.1.1 http_main.c
 --- http_main.c	1996/02/25 00:20:19	1.1.1.1
 +++ http_main.c	1996/02/25 01:14:07
 @@ -923,7 +923,7 @@
      
      if((setsockopt(sd,SOL_SOCKET,SO_REUSEADDR,(char *)&one,sizeof(one)))
         == -1) {
 -        fprintf(stderr,"httpd: could not set socket option\n");
 +        fprintf(stderr,"httpd: could not set socket option SO_REUSEADDR\n");
          perror("setsockopt");
          exit(1);
      }
 @@ -933,6 +933,21 @@
          perror("setsockopt"); 
          exit(1); 
      }
 +
 +#ifdef LINGER   /* If puts don't complete, you could try this. */
 +    {
 +    	struct linger li;
 +        li.l_onoff = 1;
 +        li.l_linger = 900;
 +
 +        if (setsockopt(sd, SOL_SOCKET, SO_LINGER,
 +            (char *)&li, sizeof(struct linger)) < 0) {
 +            fprintf(stderr,"httpd: could not set socket option SO_LINGER\n");
 +            perror("setsockopt(SO_LINGER)");
 +            exit(1);
 +        }
 +    }
 +#endif  /* LINGER */
  
      memset((char *) &sa_server, 0, sizeof(sa_server));
      sa_server.sin_family=AF_INET;
 Index: mod_imap.c
 ===================================================================
 RCS file: /home/grendel/cvs/apache/src/mod_imap.c,v
 retrieving revision 1.1.1.1
 diff -u -r1.1.1.1 mod_imap.c
 --- mod_imap.c	1996/02/25 00:20:20	1.1.1.1
 +++ mod_imap.c	1996/02/25 02:05:22
 @@ -210,6 +210,7 @@
      }
  
      if ((!strncmp (mapurl, "http:", 5 )) ||
 +	!strncmp (mapurl, "gopher:", 7) ||
  	!strncmp (mapurl, "mailto:", 7) ||
  	!strncmp (mapurl, "ftp:", 4) ||
  	!strncmp (mapurl, "telnet:", 7) ||
 

-----


-- 
jurban@norden1.com
The sheer naming of things, the creation of words, is the human way
of _appropriating_ and, as it were, disalienating the world into which,
after all, each of us is born as a newcomer and a stranger.
                                                  -- Hannah Arendt

----- End of forwarded message from Hypnos -----

-- 
Rob Hartill (robh@imdb.com)
The Internet Movie Database (IMDb)  http://www.imdb.com/
           ...more movie info than you can poke a stick at.

Mime
View raw message