Forum Discussion
First up, you don't need to do anything with the HTTP response if you are doing an HTTP::respond
The HTTP::respond 503 is complete in and of itself, and discards the collected HTTP response
The client-side connection just stays open for the next HTTP request from the client.
If you want to close the connection, use HTTP::close
- ngkin2010Apr 16, 2020Nimbostratus
Hi Simon,
Thanks for you explanation and advise.
However, if the response will be discarded, and server-side connection stay open. Will the client-side connection also stay open? Will it cause TCP re-transmission if the HTTP response be discarded?
And I not quite familiar with HTTP::collect, and not sure I need it to determine the correct Content-Length. As I am expecting the first Content-Length in the first HTTP response is referring to the whole static content size even the content is spitted into multiple packets?
Again, thanks a lot Simon :)