tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Vetter <...@motive.com>
Subject [PATCH] jk_ajp12_worker.c in 3.2b6
Date Mon, 06 Nov 2000 17:01:05 GMT
We found a problem where mod_jk/ajp12 spins in an infinite loop on NT when the client does
not provide all of "content-length" bytes worth of data in a post.  Please add this patch
to the source.

Thanks,

Brian Vetter
bjv@motive.com

> --- jk_ajp12_worker.c.orig	Tue Oct 24 09:44:46 2000
> +++ jk_ajp12_worker.c	Tue Oct 24 09:52:31 2000
> @@ -465,6 +465,11 @@
>                      return JK_FALSE;
>                  }
>                  jk_log(l, JK_LOG_DEBUG, "ajpv12_handle_request, sent %d bytes\n", this_time);
> +            } else if (this_time == 0) {
> +            	jk_log(l, JK_LOG_ERROR,
> +            		"In ajpv12_handle_request, Error: short read. content length is %d, read
%d\n",
> +            		s->content_length, so_far);
> +            	return JK_FALSE;
>              }
>          }
>      }
Mime
View raw message