Re: Connection reset by peer

will <[email protected]> Thu, 30 Apr 2009 19:20:21 -0400
Newsgroups gmane.comp.games.mud.client.lyntin
Message-ID <[email protected]>
Munelear wrote:
> I love lyntin- it's been a very stable, reliable, light weight client.  
> About half a year ago I started getting "Connection reset by peer" 
> issues while idling (so it's not a critical problem, like mid-fight).  
> My setup involves SSH'ing to my server and then connecting to a screen 
> that has lyntin running.  When I'm done playing I'll get somewhere safe 
> to idle and detach the screen, log out of the SSH connection.  For 
> several years this worked fine in all cases.  It continues to work fine 
> when I have an item (like the energy staff) that sends a text string 
> from the mud every couple of rounds to spam the connection as a poor 
> man's keep alive.  If I am naked with no spam at regular intervals I'll 
> receive the disconnect.
> 
> I can think of a few things that happened about half a year ago:
> 1) I moved from an apartment to a house.  I kept the same DSL modem, 
> router, etc so my network from the modem to my server remained the same.

Something between the computer Lyntin is running on and 3k is dropping 
the telnet session when no data is passing through for some period of 
time.  I don't know offhand how to figure out what though.

My vote is that you should idle in spammy rooms.  Jump comes to mind.  :)


> 3) I installed lyntin 4.2 and subsequently removed it.  I didn't like 
> the integration with easyinstall- lyntin is too small to warrant that 
> kind of integration (not to mention by the time I downloaded lyntin 4.2, 
> the acceptable egg list was stale so I had to modify the install file to 
> point to the current list of easyinstall eggs... apparently old eggs are 
> removed?)

I don't really know what you're talking about here.  Too small to 
warrant using setuptools?  Acceptable egg?


> I've tried to include as much information from lyntin as I know to.  If 
> anyone has any ideas on what might be causing the error or possible 
> solutions I'm all ears.  Also if there's more information that would be 
> useful in diagnosing the problem, I'll gladly include it.
> [snip]

It's not really a problem with Lyntin.  You should get the same behavior 
with any long-running TCP session connection where there are periods of 
time when no data passes across the session (telnet, ssh, ...).

You could write a plugin that sends an IAC AYT which is telnet parlance 
for "are you there?" every 5 minutes.  If 3k handles that appropriately 
or ignores it, then you should be all set.  If 3k does something stupid 
with it like tries to handle it like a command, then this won't work 
very well since it'll violate the botting rules.

You could set up a ticker that sends a #cr every 5 minutes.  But if 
you're away from your keyboard when that happens, then you're violating 
3k's botting rules.

That's all the ideas I have.  Hope it helps!

/will

------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf