pier 00/12/13 19:51:49
Modified: connectors/webapplib wa_provider_warp.c
Log:
Fixed bug wich prevented long responses to get back to the client.
Revision Changes Path
1.8 +7 -4 jakarta-tomcat-4.0/connectors/webapplib/wa_provider_warp.c
Index: wa_provider_warp.c
===================================================================
RCS file: /home/cvs/jakarta-tomcat-4.0/connectors/webapplib/wa_provider_warp.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- wa_provider_warp.c 2000/12/08 15:34:11 1.7
+++ wa_provider_warp.c 2000/12/14 03:51:49 1.8
@@ -55,7 +55,7 @@
* *
* ========================================================================= */
-// CVS $Id: wa_provider_warp.c,v 1.7 2000/12/08 15:34:11 pier Exp $
+// CVS $Id: wa_provider_warp.c,v 1.8 2000/12/14 03:51:49 pier Exp $
// Author: Pier Fumagalli <mailto:[EMAIL PROTECTED]>
#include <wa.h>
@@ -279,9 +279,11 @@
// Read from the socket and fill the packet buffer
while(TRUE) {
p->len+=recv(c->sock,p->buf+p->len,(siz-p->len),0);
- if (p->len<siz) fprintf(stderr,"SHORT len=%d siz=%d\n",p->len,siz);
- if (p->len>siz) fprintf(stderr,"INCONSIST len=%d siz=%d\n",p->len,siz);
- else {
+ if (p->len<siz) {
+ fprintf(stderr,"SHORT len=%d siz=%d\n",p->len,siz);
+ } else if (p->len>siz) {
+ fprintf(stderr,"INCONSIST len=%d siz=%d\n",p->len,siz);
+ } else {
p->len=0;
return(p);
}
@@ -901,6 +903,7 @@
buf1[x]='\0';
x=wa_warp_packet_get_string(in,buf2,8192);
buf2[x]='\0';
+ fprintf(stderr,"HEADER \"%s: %s\"\n",buf1,buf2);
if (strcasecmp("Connection",buf1)!=0) {
wa_callback_setheader(req,buf1,buf2);
}