summaryrefslogtreecommitdiff
path: root/src/DownloadCommand.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/DownloadCommand.h')
-rw-r--r--src/DownloadCommand.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/DownloadCommand.h b/src/DownloadCommand.h
index 3efaf5a0..485cdc74 100644
--- a/src/DownloadCommand.h
+++ b/src/DownloadCommand.h
@@ -76,6 +76,12 @@ protected:
// This is file local offset
virtual int64_t getRequestEndOffset() const = 0;
+
+ // Returns true if socket should be monitored for writing. The
+ // default implementation is return the return value of
+ // getSocket()->wantWrite().
+ virtual bool shouldEnableWriteCheck();
+
public:
DownloadCommand(cuid_t cuid,
const std::shared_ptr<Request>& req,