Hi all,
I'm having an issue where the dev app server is sometimes truncating
HTTP responses, with the HTTP client seeing "Connection reset by
peer".
The server will write a certain number of bytes to the client
connection and then hangup mid-transfer.
For example I am expecting a response of length 153588 bytes and only
74256 bytes are read by the client before the connection is reset.
The 'cutoff point' (the point in the data where the connection drops)
varies, sometimes 74256 bytes are transferred, sometimes123280.
I am running the server from ant on the command line, on OSX 10.6,
though I have seen it fail using the Eclipse plugin too.
I get no error messages, core dumps or anything like that I can see.
My servlet is fairly simple. It is stateless, fetching an XML
document over HTTP, applying some transformations to it and serving
the result.
Here's a simplified version - I'm not doing anything fancy:
protected void doGet(HttpServletRequest request, HttpServletResponse
response)
throws ServletException, IOException
{
response.setContentType("text/xml");
String output =
translateDocument(request.getParameter("docURL"));
response.setContentLength(output.length());
response.getWriter().write(output);
}
Totally mystified!
Any ideas?
Thanks!
Keith
--
You received this message because you are subscribed to the Google Groups
"Google App Engine for Java" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-appengine-java?hl=en.