projects
/
folly.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix zerocopy AsyncSocket memory leaks
[folly.git]
/
folly
/
io
/
async
/
AsyncSocket.h
diff --git
a/folly/io/async/AsyncSocket.h
b/folly/io/async/AsyncSocket.h
index 17980bb7c82dda9abd2f9767c31d2c58b245ca3e..44ae5968b80d580bc41056de8f91a8a2501b1404 100644
(file)
--- a/
folly/io/async/AsyncSocket.h
+++ b/
folly/io/async/AsyncSocket.h
@@
-809,6
+809,12
@@
class AsyncSocket : virtual public AsyncTransportWrapper {
*/
bool isZeroCopyWriteInProgress() const noexcept;
*/
bool isZeroCopyWriteInProgress() const noexcept;
+ /**
+ * Tries to process the msg error queue
+ * And returns true if there are no more zero copy writes in progress
+ */
+ bool processZeroCopyWriteInProgress() noexcept;
+
/**
* writeReturn is the total number of bytes written, or WRITE_ERROR on error.
* If no data has been written, 0 is returned.
/**
* writeReturn is the total number of bytes written, or WRITE_ERROR on error.
* If no data has been written, 0 is returned.