Jump to content

  •  

Bug Tracker Migration

June 3rd
Good news everyone! The staff has decided that it is time to slowly kill off this Bug Tracker. We will begin the process of slowly migrating from this Bug Tracker over to our Github Issues which can be found here: https://github.com/HerculesWS/Hercules/issues

Over the next couple of days, I will be closing off any opportunity to create new reports. However, I still will keep the opportunity to reply to existing Bug Reports. Doing this will allow us to slowly fix any bug reports we have listed here so that we can easily migrate over to our Issue Tracker.

Update - June 7th 2015: Creating new bug posts has been disabled. Please use our https://github.com/HerculesWS/Hercules/issues tracker to post bugs. Users are still able to reply to existing bug posts.

- Administration

Issue Information

  • #000932

  • 3 - Medium

  • Invalid

Issue Confirmations

  • Yes (0)No (0)
Photo

Map Char Disconnect (windows)

Posted by Hercules Bot on 06 February 2008 - 12:55 PM

Originally posted by theultramage
http://www.eathena.w...ker&showbug=932

I identified the reason why I got a map-char-client disconnect every time I tried to log back to the char server.
It's because the mapserver spams the charserver with a lot of data, enough to overload the socket buffer and cause the network layer to issue a WSAEWOULDBLOCK (= EAGAIN) error.

The problem is that eapp is using errno and comparing against EAGAIN, when on Windows, socket status doesn't go through errno. Thus the comparison fails, the server declares the connection as 'dead' and closes it. EAthena solves this by a wrapper, where WSAGetLastError() is called instead of errno() on Windows.

This post has been edited by theultramage: Feb 8 2008, 02:06 AM