• Tiho Tarnavski's avatar
    Fix incorrect bytesWritten computation in AsyncSocket · 59a501cf
    Tiho Tarnavski authored
    Summary: If a write request is buffered after a partial write, then bytes written is not updated after subsequent write operations (`performWrite`) for the buffered write request (`BytesWriteRequest`). This results in a wrong value for totalBytesWritten_, which is reported in the error callback in case the write request fails.
    
    Reviewed By: yfeldblum
    
    Differential Revision: D4205743
    
    fbshipit-source-id: f77ca55ccfdceda1008c45e72ec093b00bf250e4
    59a501cf
AsyncSocketTest2.cpp 92.5 KB