Depending on how you've got this coded (which we can only speculate about, since you haven't shown us code), you may be suffering from the HTTP/1.1 "Connection" optimization. If the HTTP header of request you're sending includes Connection: keep-alive then the site you're fetching the template from has kept the socket open, and is quietly waiting for your next request. If your script is doing something like
then you'll hang until the web server times out and closes the socket.while ( $chunk = <$socket> ) { print $chunk; }
If this is the problem, sending Connection: close with the request tells the web server to close the connection after serving you the template.
Alternatively, you can honor the Content-length: response header, read exactly that many bytes of response, then close the socket yourself.
In reply to Re: Page doesn't appear to finish
by dws
in thread Page doesn't appear to finish
by Elliott
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |