[Home] [Downloads] [Search] [Help/forum]


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  SMAUG
. -> [Folder]  SMAUG coding
. . -> [Subject]  Mud stops accepting connections? found 1 possible

Mud stops accepting connections? found 1 possible

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


Posted by Robert Powell   Australia  (367 posts)  [Biography] bio
Date Sun 12 Jun 2005 11:42 AM (UTC)
Message
Every now and again the mud stops taking conections, you can connect, but it never gets past --- A connection has been established. ---, which is my client responce, seems the server doent know what to do after that.

I know this will be one of those pain in the butt issues to resolve, so im after all thoughts or know issues in SmaugFuss 1.4a, or ideas from those who have had simular issues.

Thanks in advance.

Just a guy having a bit of fun. Nothing more, nothing less, I do not need I WIN to feel validated.
[Go to top] top

Posted by Zeno   USA  (2,871 posts)  [Biography] bio
Date Reply #1 on Sun 12 Jun 2005 03:48 PM (UTC)
Message
Sounds like it's caught in a loop? Attach gdb to it and see what's going on.

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
[Go to top] top

Posted by Conner   USA  (381 posts)  [Biography] bio
Date Reply #2 on Sun 12 Jun 2005 10:09 PM (UTC)
Message
Ok, I've run into this one too. Attaching GDB to it sounds good, but the problem only happenes every few days (and then only sometimes) though it seems to be, at least in my case, a matter of too many open files, like the mud isn't closing player files after they logon/logoff or any other files it opens for that matter. (The first symptom I've noticed of this getting ready to start being a problem is that the users command starts reflecting connections with descriptors in the higher double digit range even though I've only got maybe 5 people actually online.

-=Conner=-
--
Come test your mettle in the Land of Legends at telnet://tcdbbs.zapto.org:4000
or, for a little family oriented medieval fun, come join us at The Castle's Dungeon BBS at telnet://tcdbbs.zapto.org
or, if you just want information about either, check our web page at http://tcdbbs.zapto.org
[Go to top] top

Posted by Robert Powell   Australia  (367 posts)  [Biography] bio
Date Reply #3 on Mon 13 Jun 2005 08:10 AM (UTC)
Message
Good idea Zeno i will give it a go the next time it happens, any specifics i should do, i have never attached gdb to a running process, do i just backtrace like it was a core or seg fault?

Thanks heaps

Just a guy having a bit of fun. Nothing more, nothing less, I do not need I WIN to feel validated.
[Go to top] top

Posted by Zeno   USA  (2,871 posts)  [Biography] bio
Date Reply #4 on Mon 13 Jun 2005 07:57 PM (UTC)
Message
Check over Nick's gdb guide about how to attach it to a process. When you have it attached, do a backtrace. Then do next a few times. If it goes through the same functions over and over, it's caught in a loop.

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
[Go to top] top

Posted by Robert Powell   Australia  (367 posts)  [Biography] bio
Date Reply #5 on Fri 17 Jun 2005 12:49 AM (UTC)
Message
Seems i have found a place where it gets stuck in a loop, tho i have no idea as to what would have caused it.

if ( IS_NPC(ch) )
    {
        send_to_char( "Not for NPCs.  Sorry.\n\r", ch );
        return;
    }

    /*
     * Check for trainer.
     */

    for ( mob = ch->in_room->first_person; mob; mob = ch->next_in_room )
      {
        if ( IS_NPC(mob) && xIS_SET(mob->act, ACT_TRAIN) )
        break;
      }

    if ( !mob  )
      {
        send_to_char( "You can't do that here.\n\r", ch );
        return;
      }


It gets stuck in the for loop and the if check within it. touble is, that there were only 2 people logded in and we were both in 1 room with no trainer, and no one typed train. Any thoughts as to what i should be looking out for here, as the above code looks right to me.

Thanks in advance.

Just a guy having a bit of fun. Nothing more, nothing less, I do not need I WIN to feel validated.
[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] bio
Date Reply #6 on Fri 17 Jun 2005 01:03 AM (UTC)
Message
Well, nobody typed train, but something triggered it one way or another. Look at the gdb backtrace to see how you got into that function; that will give you some good clues.

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
[Go to top] 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.


13,224 views.

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

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

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

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at HostDash]