From ad0f0618fa2ca13d7b916f22eccc5ba3201482cb Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Thu, 14 May 2020 18:49:39 +0200 Subject: Change streams to be asynchronous Major restructuring of how streams work. Neither input nor output streams are now blocking. This avoids stalling the rest of the client or server when a peer is slow or unresponsive. Note that this puts an extra burden on users of streams to make sure they are allowed to do their work once the underlying transports are ready (e.g. monitoring fds). --- common/rdr/FileInStream.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common/rdr/FileInStream.h') diff --git a/common/rdr/FileInStream.h b/common/rdr/FileInStream.h index 268f5375..619397f0 100644 --- a/common/rdr/FileInStream.h +++ b/common/rdr/FileInStream.h @@ -34,7 +34,7 @@ namespace rdr { ~FileInStream(void); private: - virtual bool fillBuffer(size_t maxSize, bool wait); + virtual bool fillBuffer(size_t maxSize); private: FILE *file; -- cgit v1.2.3