]> git.tuebingen.mpg.de Git - paraslash.git/commit
http_send: Send http OK message earlier.
authorAndre Noll <maan@systemlinux.org>
Sat, 19 Dec 2009 12:13:53 +0000 (13:13 +0100)
committerAndre Noll <maan@systemlinux.org>
Sat, 19 Dec 2009 12:13:53 +0000 (13:13 +0100)
commit4fa9ba989b0f95e7d49a725e07ff5b4a91015700
tree39e378b125d5f5cd91e53fc76af25220336f00cb
parent4f84d0d39420295236578d27daf0f6c326858924
http_send: Send http OK message earlier.

Without this change, the http OK message is sent just when the vss is about to start
streaming, i.e. at the end of the announce interval. This might be too late and sometimes
causes the client to not receive the first chunk(s).

Fix this bug by adding the client file descriptor to the write fd set in http_preselect()
in case we received the get request (or something else) so that the following call
to select() will return immediately. The http OK message (or an error message) will
then be sent much earlier.
http_send.c