summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-30 21:17:01 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-30 21:17:01 +0000
commit52596ded79465001540e34f94f0098157e87147f (patch)
treebf8fa92f7455e9ffbe61b017672a9b2c892180db
parent6f009062aa0dc1df7c5d24a7f321d1e75bca3f34 (diff)
Made socket.cpp flush its write buffer more often (fixes odd lag on server to server connections)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2708 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/socket.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/socket.cpp b/src/socket.cpp
index fd6b68006..7147c263c 100644
--- a/src/socket.cpp
+++ b/src/socket.cpp
@@ -241,6 +241,9 @@ bool InspSocket::Poll()
break;
}
+ if (this->Buffer.length())
+ this->FlushWriteBuffer();
+
return true;
}