Re: keepalive configuration
Kragen Sitaker <[email protected]> Tue, 9 Dec 2003 11:41:28 -0800
| Newsgroups | gmane.comp.web.mod-pubsub.devel |
|---|---|
| Message-ID | <[email protected]> |
On Tue, Dec 09, 2003 at 02:12:11PM -0500, Zachary Giardalas wrote: > Kragen Sitaker wrote: > >On Tue, Dec 09, 2003 at 10:13:16AM -0500, Zachary Giardalas wrote: > >>I've played with some of the demo apps on the mod-pubsub.org site and on > >>a test server that we've setup here. When sniffing the connection, I > >>find that from the mod-pubsub site javascript keepalive messages are > >>sent once every 15 - 30 seconds, whereas the same app from our test > >>server sends them about once per second. So you're running the Perl server module, while mod-pubsub.org is using the Python server, which doesn't use Apache. > No, there are no single byte keepalives. The keepalives I've seen with > my 1.3 installation are http continuations consisting of 8 bytes > containing spaces and CRLFS, which are sent once per second or more. Probably (assuming HTTP/1.1) you're using chunked encoding, which means that even a single byte must be transmitted with a count preceding it. Something like this: 0001<CR><LF> <CR><LF> Maybe that's what you're seeing? > The mod_pubsub.org based apps contain at least 127 bytes of javascript > (many are far more wasteful), but only send every 15 to 30 seconds. I think the Python server defaults to sending a keepalive space every 60 seconds, and the Perl server defaults to sending them every half second, but I'm not sure. ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click