Top Mud Sites Forum

Top Mud Sites Forum (http://www.topmudsites.com/forums/index.php)
-   MUD Coding (http://www.topmudsites.com/forums/forumdisplay.php?f=9)
-   -   Connect/Disconnect Problems (http://www.topmudsites.com/forums/showthread.php?t=432)

Skorpian 06-04-2002 05:15 AM

I'm experiencing some problems on my mud where someone connects to the mud, but does not login, then immediately disconnects. This causes the mud to crash. The thing that puzzles me is that it only happens one in five times.

Using GDB on the mud did not provide any useful data - nothing that had anything to do with the connection code; only ingame commands (i know these commands wont cause it, as there were no players on the mud, when i crashed
it).

Any ideas? I've searched and searched through the new_descriptor, close_socket and close_socket2 functions, but I could not find anything in there that would cause the mud to crash (I compared it with a stock version of the code). The codebase is Dystopia 1.2.3


Thanks,
Skorpian of Immortal Conflict

Torren 06-04-2002 07:43 AM

Whats more then likely happening is you have a message going to all the players on the mud using the descriptor_list. bascily then arn't fully created, aka descripotr->character == NULL. gdb should show you what function is casuing the crash. What you'll more then likely need to do is add or add to the if statment d->connection == CON_PLAYING, or something like that I'm just guess based on how Rom works.

SoEnSo 06-28-2002 10:43 PM

Increase the MAX_KEY_HASH

thats one bug i know of that causes that to happen.


All times are GMT -4. The time now is 11:20 PM.

Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright Top Mud Sites.com 2022