diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2009-07-04 13:36:56 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2009-07-04 13:36:56 +0000 |
| commit | a7c222b8ab5a072d5bf47a8de5eda82867ed6a38 (patch) | |
| tree | b92b4f0b57a59f6d7137e57cce348302cea607f0 /src/FileEntry.h | |
| parent | 3a655a5d1a968373cd0f58604962d930d7912737 (diff) | |
2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Made URI reusing function work.
* src/CreateRequestCommand.cc
* src/FileEntry.cc
* src/FileEntry.h
* test/FileEntryTest.cc
Diffstat (limited to 'src/FileEntry.h')
| -rw-r--r-- | src/FileEntry.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/FileEntry.h b/src/FileEntry.h index 6d351ac7..a52b2f02 100644 --- a/src/FileEntry.h +++ b/src/FileEntry.h @@ -225,6 +225,12 @@ public: { return _singleHostMultiConnection; } + + // Reuse URIs which have not emitted error so far. Thie method + // tries to reuse at least num URIs. If less than num URIs found to + // reuse, those URIs are used more than once so that num URIs total + // are available to reuse. + void reuseUri(size_t num); }; typedef SharedHandle<FileEntry> FileEntryHandle; |
