git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@555 54d463be-8e91-2dee-dedb-b68131a5f0ec
@@ -1,4 +1,7 @@
Date Added
+12/14
+ * Fixed how socket handles EAGIN errors (retry instead of
+ disconnecting) [MouseJstr]
12/13
* Skill Updates [celest]
- Added the new 'Throw Tomahawk' skill (Requires Sakexe1129 or newer)
@@ -16,6 +16,7 @@
#include <sys/time.h>
#include <unistd.h>
#include <sys/ioctl.h>
+#include <errno.h>
#endif
#include <fcntl.h>
@@ -147,7 +148,7 @@ static int send_from_fifo(int fd)
} else {
session[fd]->wdata_size=0;
}
- } else {
+ } else if (errno != EAGAIN) {
printf("set eof :%d\n",fd);
session[fd]->eof=1;