]> git.pond.sub.org Git - empserver/commit
Don't lose output when client shuts down input transmission
authorMarkus Armbruster <armbru@pond.sub.org>
Sat, 28 Jan 2012 15:48:08 +0000 (16:48 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Mon, 20 Feb 2012 06:44:21 +0000 (07:44 +0100)
commit16879f3db2bfd4e1a5d35892db5556247a3bb0da
tree92356c95979fb35f57a5e8e69fb97e3abdf64f92
parentbdc1c40f0a92bc568d41ba9b79d32e0f93ebb1f3
Don't lose output when client shuts down input transmission

player_login() skips sending C_EXIT and flushing server output when
io_eof() is true.  That's the case after a read from the socket
returned zero, which means the client has shut down transmission on
his socket, or closed it.  If it's the former, then dropping output
like that is bad.  Our client never does that, but others might.

Condition was introduced in Empire 2, don't know why.
src/lib/player/login.c