httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Phillips <pa...@go2net.com>
Subject JSDK 1.0 w/ Apache 1.2.0
Date Fri, 06 Jun 1997 09:02:03 GMT
These are all the diffs I had to make to get JSDK 1.0
mod_servlet.c working with Apache 1.2.0 (the relase notes
claim it does not work with 1.2) on Solaris 2.5.1. I
successfully ran a couple servlets, but haven't done much other
testing as I had to bail.  So in case yer interested in
avoiding the trivial tweaking effort...

-- 
Paul Phillips      |         Time is the best teacher, because it
Lost Sheep         |               kills all the students.
<paulp@go2net.com> | 
+1 206 447 1595    |------* http://www.go2net.com/internet/sequitur/ *------


*** ./mod_servlet.c.orig	Fri Jun  6 01:56:13 1997
--- ./mod_servlet.c	Fri Jun  6 01:55:53 1997
***************
*** 86,92 ****
  #define SERVLET_CONFIG "/opt/local/pkgs/ServAPI/servlets.properties"
  #endif
  #ifndef NCGI_CLASS
! #define NCGI_CLASS "sun.servlet.embedding.ncgi.NcgiServletGate"
  #endif
  #ifndef NCGI_HOST
  #define NCGI_HOST "localhost"
--- 86,92 ----
  #define SERVLET_CONFIG "/opt/local/pkgs/ServAPI/servlets.properties"
  #endif
  #ifndef NCGI_CLASS
! #define NCGI_CLASS "sun.servlet.apache.NcgiServletGate"
  #endif
  #ifndef NCGI_HOST
  #define NCGI_HOST "localhost"
***************
*** 498,504 ****
  
  
  /* ServletConfig command. */
! static char*
  servlet_config( cmd_parms* parms, void* dummy, char* var, char* val )
      {
      server_rec* s = parms->server;
--- 498,504 ----
  
  
  /* ServletConfig command. */
! const char*
  servlet_config( cmd_parms* parms, void* dummy, char* var, char* val )
      {
      server_rec* s = parms->server;
***************
*** 695,701 ****
  	    int len_read, len_to_read = remaining;
  	    if ( len_to_read > sizeof(databuffer) )
  		len_to_read = sizeof(databuffer);
! 	    len_read = read_client_block( r, databuffer, len_to_read );
  	    if ( len_read == 0 )
  		break;
  	    if ( ok_to_write )
--- 695,701 ----
  	    int len_read, len_to_read = remaining;
  	    if ( len_to_read > sizeof(databuffer) )
  		len_to_read = sizeof(databuffer);
! 	    len_read = get_client_block( r, databuffer, len_to_read );
  	    if ( len_read == 0 )
  		break;
  	    if ( ok_to_write )



Mime
View raw message