Fix zerocopy AsyncSocket memory leaks
[folly.git] / folly / io / async / AsyncSocket.h
index 17980bb7c82dda9abd2f9767c31d2c58b245ca3e..44ae5968b80d580bc41056de8f91a8a2501b1404 100644 (file)
@@ -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.