<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252">
<TITLE></TITLE>
<META content="MSHTML 5.50.4611.1300" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=834185217-09042001><FONT face=Arial color=#0000ff
size=2>There's nothing special about that sequence. My JabberBot, for
instance, sends a single \r every 30 seconds to keep its connection with the
server alive. You could probably only send the "stay awake" reminder every
few minutes and still get away with it. I agree the TCP keepalive on the
server might be more elegant, but this is easier.</FONT></SPAN></DIV>
<DIV><SPAN class=834185217-09042001><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=834185217-09042001><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=834185217-09042001><FONT face=Arial color=#0000ff
size=2>Todd.</FONT></SPAN></DIV>
<DIV><SPAN class=834185217-09042001><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> Jens Alfke
[mailto:jens@mac.com]<BR><B>Sent:</B> Monday, April 09, 2001 11:45
AM<BR><B>To:</B> jdev@jabber.org<BR><B>Subject:</B> Re: [JDEV] Detecting
client/server disconnect?<BR><BR></FONT></DIV><BR>
<P>On Friday, April 6, 2001, at 03:40 PM, Oliver Jones wrote: </P><BR>
<P>Winjab works around this problem. It sends, once a minute, the five byte
no-op message </P>
<P>space space tab space space </P>
<P>to the server. This keeps the flow open. In xml terms, this message is
formally a noop; very cool. </P><BR>
<P>This is a clever hack! Is there something magic about "space space tab
space space" or would any whitespace sequence work? </P><BR>
<P>On the other hand, using TCP keepalive seems more efficient, since
responding to pings would involve only the TCP stack on the server and not the
Jabber server process itself. If you imagine a server with 10,000 simultaneous
connections, there are going to be 167 of these pings a second, so efficiency
becomes important...<FONT color=#000db7> </FONT></P><BR>
<P><B><I><FONT face=Helvetica color=#00111e
size=5>—Jens</FONT></I></B><B><I></I></B><B><I></I></B></P></BLOCKQUOTE></BODY></HTML>