Re: how to make noffle NOT switch to offline mode on "Server connection failed or newsbase problem. Leaving online mode."?

Jim Hague <[email protected]> Mon, 27 Jan 2003 12:57:55 -0000 (GMT)
Newsgroups gmane.network.noffle.user
Organization The Bear Cave
Message-ID <[email protected]>
On 27-Jan-2003 Miernik wrote:
> I use a very slow GPRS connection, 6000 bps, were latencies of 5-10
> seconds are common. I often get this error in noffle:
> 
> [...]
> Jan 27 01:16:12 tarnica noffle[5190]: [R] 503 Timeout after 10 seconds,
> closing connection.

By default Noffle will time out the connection if it has to wait more than 30s
for the initial connection to complete or for a reply to a command to be
received.

You can change this timeout by setting the connect-timeout config file
parameter. The manual page is not as clear as it should be; this timeout
applies to more than just the initial connection.

In view of your large latencies, can I suggest you try setting connect-timeout
to, say, 120?

> [...]
> Jan 27 01:16:16 tarnica noffle[5190]: Server connection failed or newsbase
> problem. Leaving online mode.
> Jan 27 01:16:16 tarnica noffle[5190]: NOFFLE is now offline
> 
> How can I force it NOT to switch to offline mode in such cases? 
> I would like it to allow me to retry fetching that post immidiately,
> without having to manualy switch it to online mode first. 

You can't force it not to switch to offline mode. Noffle take the view that if
the connection failed, something is pretty seriously wrong with your network
connection or the server, and it should take action to ensure it doesn't keep
pointlessly retrying. So it resets itself back to a mode where user action is
required to initiate more network activity.

> BTW: it would also be great to make noffle not FIN the connection to the
> news server after fetching each post, but to remain connected in case I
> want to fetch any more messages in the next couple of minutes. It might
> close the connection if I do not fetch any post within 10 minutes. That
> would save much SYN - SYN ACK - ACK - FIN - FIN ACK packets.

It would also save the 'MODE READER' transaction and re-authenticating if the
upstream server required authenticating.

I'll put it on the TODO list, but it's not that easy to do given Noffle's
present structure.

-- 
Jim Hague - [email protected] (Work), [email protected] (Play)
Never trust a computer you can't lift or you don't control.


-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com