summaryrefslogtreecommitdiff
path: root/src/socket.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-11 19:46:57 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-11 19:46:57 +0000
commit7144d8c63cd65c902a41c59f45e0e0b9d5795f78 (patch)
tree6de24ae78ad03c8bba4fb9f206088da575ee5717 /src/socket.cpp
parent2b28d1f137778f9bc82d0ff2ea271debfaa5f5ca (diff)
Logging
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3681 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/socket.cpp')
-rw-r--r--src/socket.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/socket.cpp b/src/socket.cpp
index da78840ea..e9305ec8d 100644
--- a/src/socket.cpp
+++ b/src/socket.cpp
@@ -271,20 +271,25 @@ bool InspSocket::FlushWriteBuffer()
{
if (outbuffer.size())
{
+ log(DEBUG,"Writing %d to socket",outbuffer.size())
int result = write(this->fd,outbuffer[0].c_str(),outbuffer[0].length());
if (result > 0)
{
+ log(DEBUG,"Wrote %d to socket",result);
if ((unsigned int)result == outbuffer[0].length())
{
/* The whole block was written (usually a line)
* Pop the block off the front of the queue
*/
+ log(DEBUG,"Popping front item, now %d items left",outbuffer.size());
outbuffer.pop_front();
}
else
{
+ log(DEBUG,"Cutting front item");
std::string temp = outbuffer[0].substr(result);
outbuffer[0] = temp;
+ log(DEBUG,"Front item is now: ",outbuffer[0].c_str());
}
}
else if ((result == -1) && (errno != EAGAIN))