aboutsummaryrefslogtreecommitdiffstats
path: root/src/socket.cpp
diff options
context:
space:
mode:
authorGravatar brain2006-03-27 20:34:28 +0000
committerGravatar brain2006-03-27 20:34:28 +0000
commit1c6eda926068da382fc018020366990479bf4206 (patch)
tree33582a52499a2b69dbea9f45cc69d03ccfdfb260 /src/socket.cpp
parentFix to allow smarter handling of hosts > 64 (diff)
Same fix to 1.0 stable, im quickly getting fed up of doing the same thing twice.
git-svn-id: http://svn.inspircd.org/repository/branches/1_0_stable@3784 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/socket.cpp')
-rw-r--r--src/socket.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/socket.cpp b/src/socket.cpp
index 20a447ba7..1449b3c8d 100644
--- a/src/socket.cpp
+++ b/src/socket.cpp
@@ -135,11 +135,9 @@ bool InspSocket::DoResolve()
log(DEBUG,"In DoResolve(), trying to resolve IP");
if (this->dns.HasResult())
{
- log(DEBUG,"Socket has result");
std::string res_ip = dns.GetResultIP();
if (res_ip != "")
{
- log(DEBUG,"Socket result set to %s",res_ip.c_str());
strlcpy(this->IP,res_ip.c_str(),MAXBUF);
socket_ref[this->fd] = NULL;
}
@@ -277,25 +275,20 @@ 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))