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 ➜ ROM ➜ Running the server ➜ ROT server keeps spamming chars off

ROT server keeps spamming chars off

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


Posted by Typhon   USA  (112 posts)  Bio
Date Sun 29 Jun 2003 08:03 PM (UTC)
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
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #1 on Sun 29 Jun 2003 08:52 PM (UTC)
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
Top

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

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #3 on Sun 29 Jun 2003 09:27 PM (UTC)
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
Top

Posted by Typhon   USA  (112 posts)  Bio
Date Reply #4 on Sun 29 Jun 2003 09:37 PM (UTC)
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
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.


19,216 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.