diff options
author | Pieter Wuille <pieter.wuille@gmail.com> | 2011-06-06 20:35:01 +0200 |
---|---|---|
committer | Pieter Wuille <pieter.wuille@gmail.com> | 2011-06-12 00:29:05 +0200 |
commit | 76d660ebd336d3dd47dd555ebbaa721a4cc978b2 (patch) | |
tree | ce40033b63b17ee2527795781885a76310d5fe0d /src/main.h | |
parent | e051f1b510c2a8da51c099c73d5750b9c8c9422b (diff) |
Faster timeout when connecting
Use non-blocking connects, and a select() call to wait a predefined
time (5s by default, but configurable with -timeout) for either
success or failure. This allows much more connections to be tried
per time unit.
Based on a patch by phantomcircuit.
Diffstat (limited to 'src/main.h')
-rw-r--r-- | src/main.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/main.h b/src/main.h index 8087df33a2..436ffbecbd 100644 --- a/src/main.h +++ b/src/main.h @@ -79,7 +79,6 @@ extern int fUseUPnP; - bool CheckDiskSpace(uint64 nAdditionalBytes=0); FILE* OpenBlockFile(unsigned int nFile, unsigned int nBlockPos, const char* pszMode="rb"); FILE* AppendBlockFile(unsigned int& nFileRet); |