aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authors_nakamoto <s_nakamoto@1a98c847-1fd6-4fd8-948a-caf3550aa51b>2010-03-05 02:55:09 +0000
committers_nakamoto <s_nakamoto@1a98c847-1fd6-4fd8-948a-caf3550aa51b>2010-03-05 02:55:09 +0000
commit966cca4bd4a6d869583fb47f5f66ed4672c007ff (patch)
treeca80f5703d6fb580c20f6e05c6b5a827c09ccb93
parent2cffa7ce315d9b98d35192d16927b44d21b9e1a7 (diff)
misc
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@75 1a98c847-1fd6-4fd8-948a-caf3550aa51b
-rw-r--r--irc.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/irc.cpp b/irc.cpp
index 9d563cce8d..de0b997abe 100644
--- a/irc.cpp
+++ b/irc.cpp
@@ -76,6 +76,8 @@ bool RecvLine(SOCKET hSocket, string& strLine)
if (c == '\r')
return true;
strLine += c;
+ if (strLine.size() >= 9000)
+ return true;
}
else if (nBytes <= 0)
{
@@ -109,7 +111,7 @@ bool RecvLineIRC(SOCKET hSocket, string& strLine)
return false;
vector<string> vWords;
ParseString(strLine, ' ', vWords);
- if (vWords[0] == "PING")
+ if (vWords.size() >= 1 && vWords[0] == "PING")
{
strLine[1] = 'O';
strLine += '\r';
@@ -156,6 +158,7 @@ bool Wait(int nSeconds)
void ThreadIRCSeed(void* parg)
{
+ printf("ThreadIRCSeed started\n");
SetThreadPriority(THREAD_PRIORITY_NORMAL);
int nErrorWait = 10;
int nRetryWait = 10;