summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Changelog.txt3
-rw-r--r--src/common/socket.c3
2 files changed, 5 insertions, 1 deletions
diff --git a/Changelog.txt b/Changelog.txt
index 414f3c095..856e519df 100644
--- a/Changelog.txt
+++ b/Changelog.txt
@@ -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)
diff --git a/src/common/socket.c b/src/common/socket.c
index 701d4e0de..415a011a4 100644
--- a/src/common/socket.c
+++ b/src/common/socket.c
@@ -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;
}