diff options
author | s_nakamoto <s_nakamoto@1a98c847-1fd6-4fd8-948a-caf3550aa51b> | 2009-11-13 01:23:08 +0000 |
---|---|---|
committer | s_nakamoto <s_nakamoto@1a98c847-1fd6-4fd8-948a-caf3550aa51b> | 2009-11-13 01:23:08 +0000 |
commit | 31e6ea7f5d5b3d73f4084261465142c9fe0fb894 (patch) | |
tree | 7427ce9b17468ed4a9dec82b380c2dd40a5332ca /irc.cpp | |
parent | e9c2b5c84d7bbb7f173cbe6035f6299248e14769 (diff) |
monitor ThreadSocketHandler and terminate and restart if hung, convert _beginthread to CreateThread wrapper, disconnect inactive connections, ping, break up long messages to speed up initial download, better priorities for initiating connections, track how many nodes have requested our blocks and transactions, status #/offline and warning message on unsent blocks, minimize on close as separate option -- linux-test5
Diffstat (limited to 'irc.cpp')
-rw-r--r-- | irc.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -54,7 +54,7 @@ static bool Send(SOCKET hSocket, const char* pszSend) const char* pszEnd = psz + strlen(psz);
while (psz < pszEnd)
{
- int ret = send(hSocket, psz, pszEnd - psz, 0);
+ int ret = send(hSocket, psz, pszEnd - psz, MSG_NOSIGNAL);
if (ret < 0)
return false;
psz += ret;
@@ -156,7 +156,7 @@ bool Wait(int nSeconds) void ThreadIRCSeed(void* parg)
{
- SetThreadPriority(GetCurrentThread(), THREAD_PRIORITY_NORMAL);
+ SetThreadPriority(THREAD_PRIORITY_NORMAL);
int nErrorWait = 10;
int nRetryWait = 10;
@@ -256,6 +256,7 @@ void ThreadIRCSeed(void* parg) CAddress addr;
if (DecodeAddress(pszName, addr))
{
+ addr.nTime = GetAdjustedTime() - 51 * 60;
CAddrDB addrdb;
if (AddAddress(addrdb, addr))
printf("IRC got new address\n");
|