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

Gammon Software Solutions forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  ROM
. -> [Folder]  Running the server
. . -> [Subject]  ROT server keeps spamming chars off

Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

ROT server keeps spamming chars off

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page


Posted by Typhon   USA  (112 posts)  [Biography] bio
Date Sun 29 Jun 2003 08:03 PM (UTC)  quote  ]
Message
im tryin to help out a friend and im tryin to figure out this bug... ive never noticed this alone but when fighting in a group of 2 or more players the mud bugs and the character is disconnected.. i get..

Write_to_descriptor: Resource temporarily unavailable
Sun Jun 29 15:10:07 2003 :: Closing link to Typhon.
Sun Jun 29 15:10:07 2003 :: [*****] BUG: xAct_new: bad code 10.
Sun Jun 29 15:10:07 2003 :: [*****] BUG: xAct_new: bad code 10.

the bug only happens mid fight and the only time i've been disconnected is when i was fighting in a group.. almost like i was being spammed off..
thanks
-typ
[Go to top] top

Posted by Nick Gammon   Australia  (18,801 posts)  [Biography] bio   Forum Administrator
Date Reply #1 on Sun 29 Jun 2003 08:52 PM (UTC)  quote  ]
Message
"Resource temporarily unavailable" means a "send" to the TCP/IP socket has blocked but you have a non-blocking socket.

It is normal to have non-blocking sockets (in this sort of situation), so the bug is that the server is not detecting the "would block" error return and simply queuing up the write to be done later.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Typhon   USA  (112 posts)  [Biography] bio
Date Reply #2 on Sun 29 Jun 2003 08:56 PM (UTC)  quote  ]
Message
is there any way to go around it or some way to keep people from getting spammed off?
[Go to top] top

Posted by Nick Gammon   Australia  (18,801 posts)  [Biography] bio   Forum Administrator
Date Reply #3 on Sun 29 Jun 2003 09:27 PM (UTC)  quote  ]
Message
Yes there is a way around it. Fix the bug.

You haven't said what code exactly your friend is using - is it stock ROM? Or has s/he added something?

I don't recall complaints of this nature about stock ROM, but may be wrong.

Possibly if someone added "an extra message" without understanding sockets programming they might easily cause this problem.

Failing that, you have a clue *where* it is happening, the message "write_to_descriptor" would be found in the code (maybe more than once). If more than once, make them unique (eq. "write_to_descriptor_1") and so on, and then when you work out which one it is, look closely at the error check directly after the write.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Typhon   USA  (112 posts)  [Biography] bio
Date Reply #4 on Sun 29 Jun 2003 09:37 PM (UTC)  quote  ]
Message
his mud is a highly modded rot mud but i have a copy of stock rot that has the same bug in it.. ill try to narrow it down more though
[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.


2,125 views.

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

[Home]

Written by Nick Gammon - 5K

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

[Best viewed with any browser - 2K]    [Internet Contents Rating Association (ICRA) - 2K]    [Web site powered by FutureQuest.Net]