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.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ SMAUG ➜ SMAUG coding ➜ No Immortal Timeout

No Immortal Timeout

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


Pages: 1  2 

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #15 on Mon 26 May 2008 03:32 AM (UTC)

Amended on Mon 26 May 2008 03:33 AM (UTC) by Nick Gammon

Message
Quote:

Yes I did.....

(I implemented a fix from Kayle...that is why the code looks different)

As for the last part I don't get the idle disconnect message.


Your message read, when I read it:

Quote:

(I implemented a fix from Kayle...that is why the code looks different)

And I will check for that last part.


I hoped you would report in a fresh message the results of that investigation. I can't really be expected to scroll back and re-read old messages in the hope that maybe information in them will change.


OK, so you didn't get the idle disconnect message, so you aren't disconnected because of that code, so making changes to it will do nothing.

Quote:

Usually I've noticed the connection gets kicked off around 10 minutes. I just got kicked off again:


Why on earth didn't you mention that before? The code we are looking at has three time intervals in it:


  • 2 minutes if you haven't entered a character name
  • 5 minutes if you haven't started playing
  • 2 hours if you are playing but are idle


So, a 10 minute disconnect is none of those. Also, did you try logging in as a non-immortal? Like, level 1? Are you also disconnected after 10 minutes? If so, this is nothing to do with being immortal or not, or the code we have been poring over for the last day.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Whisperedecho   USA  (51 posts)  Bio
Date Reply #16 on Mon 26 May 2008 03:34 AM (UTC)
Message
Sorry, didn't realize that you had not seen that.

As for the 10 minutes thing, I thought it was related earlier to the disconnect as when I changed the values around it disconnected me after 30 seconds instead of 10 mins.

I will try my testcharacter (lvl 1) and see if it disconnects me after 10 minutes.
Top

Posted by Whisperedecho   USA  (51 posts)  Bio
Date Reply #17 on Mon 26 May 2008 03:47 AM (UTC)

Amended on Mon 26 May 2008 03:48 AM (UTC) by Whisperedecho

Message
Ok, it's been over 11 minutes now with my test character loaded into the game and no disconnect has happened.
Top

Posted by Whisperedecho   USA  (51 posts)  Bio
Date Reply #18 on Mon 26 May 2008 03:49 AM (UTC)

Amended on Mon 26 May 2008 03:50 AM (UTC) by Whisperedecho

Message
I was disconnected after 15 mins:

<30hp 110m 110mv>
Your surroundings begin to fade as a mystical swirling vortex of colors
envelops your body... When you come to, things are not as they were.

A strange voice says, 'We await your return, Testchar...'
--- Disconnected on Sunday, May 25, 2008, 11:48 PM ---
--- Connected for 0 days, 0 hours, 14 minutes, 59 seconds. ---

The "WhisperedEcho" server has closed the connection

Logs say: Sun May 25 23:48:40 2008 :: Testchar has quit (Room 1221)
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #19 on Mon 26 May 2008 04:03 AM (UTC)
Message
Well that looks like something else again. If you search for that message it is in do_quit, which is nothing to do with the idle timeout.

I suggest you add the line I mentioned before to comm.c:


log_string( "Player timeout" );   // <<-- add this


At least you will know for sure whether it is the idle timeout code that is responsible. I am starting to doubt it.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Whisperedecho   USA  (51 posts)  Bio
Date Reply #20 on Mon 26 May 2008 04:05 AM (UTC)
Message
Ok, I'll try that. I tried changing the code to see if it would timeout:

else if( ( !d->character && d->idle > [b]360[/b] ) /* 2 mins */
|| ( d->connected != CON_PLAYING && d->idle > 1200 && (d->character->level < LEVEL_IMMORTAL) ) /* 5 mins */
|| d->idle > 120 && (d->character->level < LEVEL_IMMORTAL)) /* 2 hrs */

but I am still connected after 5 mins so I also doubt it is that. I'll report back after I see if the fix from your previous post does the trick.
Top

Posted by Whisperedecho   USA  (51 posts)  Bio
Date Reply #21 on Mon 26 May 2008 04:07 AM (UTC)

Amended on Mon 26 May 2008 04:14 AM (UTC) by Whisperedecho

Message
I had already applied that fix in your post to the code but it is not showing up in the logs.

I am searching on Google for potential causes. I am using a Linksys router with Ubuntu.
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #22 on Mon 26 May 2008 04:12 AM (UTC)

Amended on Mon 26 May 2008 04:13 AM (UTC) by Nick Gammon

Message
Can we clarify something? You said you don't get the message about "idle timeout ... disconnecting", but do you always get the message you showed a few posts ago? This one:


Your surroundings begin to fade as a mystical swirling vortex of colors
envelops your body... When you come to, things are not as they were.


If you have always got that message it would have been helpful to mention it (you haven't timed out, you have been forced to quit, that isn't the same thing). And if that is always the message we have been looking in the wrong spot.

There is a place in update.c which calls do_quit for some reason - I'm not totally sure why, but it is something to do with "if( ch->timer > 24 )" - whatever that means in this case.


- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Whisperedecho   USA  (51 posts)  Bio
Date Reply #23 on Mon 26 May 2008 04:15 AM (UTC)

Amended on Mon 26 May 2008 04:16 AM (UTC) by Whisperedecho

Message
I only got that message after being connected with my level 1 character. I have never got that message when connected with my Immortal character.

The only message I get with my Immortal character is the sudden disconnect message and the "Connection reset by peer" message in the log.

When my test character was disconnected, it gave the message that you quoted from above and it said "Testchar quit" in the logs.
Top

Posted by Whisperedecho   USA  (51 posts)  Bio
Date Reply #24 on Mon 26 May 2008 04:28 AM (UTC)
Message
Don't know if this will help you but one of my other Imms keeps getting disconnected as well and this is what I see when he is disconnected:


Comm: EOF encountered on read.
Comm: Closing link to Hawthorne.
Hawthorne has lost his link.
Top

Posted by Whisperedecho   USA  (51 posts)  Bio
Date Reply #25 on Mon 26 May 2008 04:47 AM (UTC)
Message
Interesting....

I just got disconnected after being on for 15 and the other Imm got booted off at 10 mins.

I just uninstalled the firewall on my ubuntu machine...hopefully the problem is that simple to fix.

I'll keep you updated.
Top

Posted by Whisperedecho   USA  (51 posts)  Bio
Date Reply #26 on Mon 26 May 2008 04:58 AM (UTC)

Amended on Mon 26 May 2008 04:59 AM (UTC) by Whisperedecho

Message
Well, looks like the firewall was the problem. I've been connected for 20 minutes now with no problem

Thank you for all your help Nick and I'm sorry I wasted your time on a fool's errand. Fortunately (depending on how you look at it), it was a simple fix that I should have seen but at least I caught it instead of wasting more time on the problem.

EDIT: For anyone reading this post I was using lokkit as the firewall if you're curious. I didn't change any rules, just uninstalled it.
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.


83,970 views.

This is page 2, subject is 2 pages long:  [Previous page]  1  2 

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.