Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.
 Entire forum ➜ MUSHclient ➜ General ➜ Frequently disconnected

Frequently disconnected

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Zeno   USA  (2,871 posts)  Bio
Date Mon 05 Sep 2005 06:11 AM (UTC)

Amended on Mon 05 Sep 2005 06:16 AM (UTC) by Zeno

Message
I am being frequently disconnected from most MUDs. I assume it's probably my connection plus a certain server having lag. Basically it goes like this.

I'll be on the MUD, idle, then later go to type a command (like who), and nothing will happen. The MUD will still be up, and I will have never lost internet connection, but then MUSHclient will say disconnected. I am on another MUD and stay on it fine. And the other players on the current MUD I get disconnected on have no lag or disconnects.

Is the only way to debug this turning on debug packets? If so, what exactly should I look for?

This is what I get in debug:
Sent  packet: 7 (5 bytes)

WHO..              57 48 4f 0d 0a

While in the MUD I get:
WHO
--- Disconnected on Monday, September 05, 2005, 2:17 AM ---
--- Connected for 5 minutes, 22 seconds ---

There's a minute or so of delay between who and the disconnect

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
Top

Posted by Dralnu   USA  (277 posts)  Bio
Date Reply #1 on Mon 05 Sep 2005 06:20 AM (UTC)
Message
That could be a few things. It is probably somewhere there is a slight incompatability, and with the lag it could just end up with the client shutting down the connection. Maybe see if there is a setting somewhere you missed dealing with idle?

Lacking that, it might be that an imm there doesn't like you and is screwing with things *shrugs* I'm betting connection issue, though
Top

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #2 on Mon 05 Sep 2005 06:23 AM (UTC)
Message
Well, I'm the head Imm, so it's not someone kicking me off.

What do you mean a setting with idle? On the MUD? No, that's fine. MUSHclient? I've never seen idle settings.

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
Top

Posted by Dralnu   USA  (277 posts)  Bio
Date Reply #3 on Mon 05 Sep 2005 06:29 AM (UTC)
Message
I had an old net issue where my connection would idle for so long and a somewhat hidden idle setting would kick me off. Double-check it, and if not, it would probably be something with the server. If someone else is running it, tell them to see if they can see what might cause it on their end. I know I've seen times where connections that were going through like a dial-up to cable where the two didn't respond well to each other, and dsl to cable may cause the same problems at times. Thats my best guess
Top

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #4 on Mon 05 Sep 2005 06:31 AM (UTC)
Message
On my internet? That sure isn't it. If it was, I'd be getting disconnected from the other MUDs as well as Trillian and so on. The MUD doesn't receive my packets it seems, even though the MUD is up and running fine, and my internet hasn't lost connection.

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
Top

Posted by Dralnu   USA  (277 posts)  Bio
Date Reply #5 on Mon 05 Sep 2005 06:59 AM (UTC)
Message
So all it does is lag awhile, you put in a command, then it kills the connection?

There any logs from the MUD about forcing a disconnect for some reason? Maybe it could be kicking you for some reason (caught in a loop or something and kicks your Imm off to save itself maybe?). Does it do the same with all your chars on the game?
Top

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #6 on Mon 05 Sep 2005 07:10 AM (UTC)
Message
It seems like if I don't enter a command every few minutes (less actually), and I go to enter a command, the issue will appear. It'll lag, and kick me off. But if I enter a command say every few seconds it's fine. Like I said, it's not the MUD, the logs show nothing. I'm using SmaugFUSS.

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
Top

Posted by Dralnu   USA  (277 posts)  Bio
Date Reply #7 on Mon 05 Sep 2005 06:14 PM (UTC)
Message
Talk to the server tech support or whatever and see if they can see if it might be something with the server. Otherwise, I have no clue.
Top

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #8 on Mon 05 Sep 2005 06:33 PM (UTC)
Message
Nor is it the server. If I have two characters on, and idle one of them, and continue typing commands on the other, only the idle will lose connection.

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #9 on Mon 05 Sep 2005 08:42 PM (UTC)
Message
How long has this been going on? A very frequent cause is a router somewhere along the way that drops connections if they idle (NAT routers do this a lot).

The archetypical question is: what has changed since this wasn't happening and when it started happening? :)

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
Top

Posted by Shadowfyr   USA  (1,788 posts)  Bio
Date Reply #10 on Mon 05 Sep 2005 08:53 PM (UTC)
Message
I think, from your description, this may be a WinSock issue. Basically, if a router some place between you and the mud goes down and the lag is enough to interfer with packets, then I suspect this happens:

1. Enter command.
2. Router goes down.
3. Mushclient sends the packet.
4. WinSock waits for a confirmation that the packet was received.
5. No confirmation.
6. Winsock resends and waits.
7. Repeat ??? times.
8. Winsock (or something) decides the connection must have been lost and closes it.

This **only** happens to me if lag is already present and I try to send a command. If I notice lag from the inbound text from a mud and I simply wait for a while, until it clears up (hard to tell sometimes), then the connection stays live. This is why I strongly suspect its an acknowledgement error in the packet management for the socket, not a bug in Mushclient. Since no acknowledgement of packet reception happens after X tries, the connection closes.
Top

Posted by Greven   Canada  (835 posts)  Bio
Date Reply #11 on Tue 06 Sep 2005 02:32 PM (UTC)
Message
I have this exact same problem, and for me it was the NAT setting on my router. Without access to it, the actual way that I fixed it(since the problem was with my imm while I coded) was to increase the frequency of immortal_complex.are reset and removed the annoying reset message. I would get an empty line every 3 minutes, but it kept my connection alive.

Nobody ever expects the spanish inquisition!

darkwarriors.net:4848
http://darkwarriors.net
Top

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #12 on Tue 06 Sep 2005 03:13 PM (UTC)
Message
Hmm. Yeah, I notice if I receive data once in a while my connection stays up. I think this happens only when I am download/uploading quite a bit.

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #13 on Tue 06 Sep 2005 04:57 PM (UTC)
Message
I just modified my codebase to accept special keepalive text. I don't think I used plain empty lines because people use those to see their prompt, but in any case I had a timer that would send this to the MUD which would then throw it away and not produce any output.

The problem I had was that if I didn't send any data, the connection would eventually become so slow it was impossible. I think it had to do with the campus routers prioritizing traffic... they said it was to prevent 3d games from slurping up too much bandwidth, but, well, everybody knows the horribly high amounts of bandwidth MUDs consume... :-)

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


39,728 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.