I solved my own problem. Here's what caused it:<div><br></div><div>web-server/http/request.ss, line 39. This is in the function read-request. When it reads a POST request, it changes the timeout of whatever connection the request was sent over to be Content Length seconds later. I'm not sure when it makes sense to do this, but in my case with a very short request (Like doit="Go") calling an expensive operation this caused it to timeout. I've now copied web-server code to a personal collection where I just commented this line out.<br>
<br></div><div>~NT</div><div><br><div class="gmail_quote">On Mon, Nov 16, 2009 at 12:32 PM, N N <span dir="ltr"><<a href="mailto:nothere44@gmail.com">nothere44@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
With initial-connection-timeout set to 300 (5 minutes) I'm still getting<br>some deaths due to timeouts, and am at a loss. I've hunted through<br>server code to try to figure out what is going on, but not with much<br>
success. Here is what is happening: I navigate to a page with a form.<br> I click on submit for that form and it's intercepted by JavaScript to<br>send off to the server in the background a la AJAX and displays the<br>
results when they return. Now, I would expect that this background<br>submission has the full 5 minutes to complete (and if the time is<br>exceeded, it seems from my tests with a 30-second timeout to retry the<br>request once with the new connection and full timeout: if you could<br>
point me to where the logic that does this is I'd be grateful).<br>However, in practice it is at times ended much more quickly (54 and 27<br>seconds seem the norm) and continues to die to timeouts in the same<br>timespan when resubmitted (which seems to me to indicate the time is<br>
captured in the k-url of the form's action in some way, except that<br>the kill-time is stored as an absolute not an offset).<br><br>(It shouldn't matter, but we are using our own LRU continuation<br>manager that only differs in that not at maximum memory continuations<br>
only live for 10 minutes and at maximum 2 minutes.)<div><br></div><div>Any insights are appreciated,</div><div>~NT</div>
</blockquote></div><br></div>