diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2012-06-25 21:37:55 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2012-06-25 21:37:55 +0900 |
| commit | 3620d271af36a210af9c83fd6b49d13940710055 (patch) | |
| tree | 44526e797ac33bc7c34fbe5244f31464768034af /src/DHTInteractionCommand.cc | |
| parent | e816c5eee46115111d706f86f7bdae303116403c (diff) | |
Process as many messages as possible in recv buffer
Diffstat (limited to 'src/DHTInteractionCommand.cc')
| -rw-r--r-- | src/DHTInteractionCommand.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/DHTInteractionCommand.cc b/src/DHTInteractionCommand.cc index ff17a8a6..f98e4699 100644 --- a/src/DHTInteractionCommand.cc +++ b/src/DHTInteractionCommand.cc @@ -83,7 +83,7 @@ bool DHTInteractionCommand::execute() taskQueue_->executeTask(); - for(size_t i = 0; i < 20; ++i) { + while(1) { SharedHandle<DHTMessage> m = receiver_->receiveMessage(); if(!m) { break; |
