[Bug 10648] Async WSASend does not send all bytes.

WineHQ Bugzilla wine-bugs at winehq.org
Tue Mar 1 12:02:03 CST 2022


https://bugs.winehq.org/show_bug.cgi?id=10648

Jinoh Kang <jinoh.kang.kr at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jinoh.kang.kr at gmail.com

--- Comment #5 from Jinoh Kang <jinoh.kang.kr at gmail.com> ---
Requesting to reopen the ticket.

The gRPC library relies on the all-or-none behaviour of nonblocking send() on
Winsock.  All applications relying on gRPC thus fails to transmit RPC packets
properly.

It's possible to patch gRPC instead [1] so that it properly handles partial
writes, but it is not always feasible in proprietary software applications.

Possible directions for the fix include:

- In sock_send(), test if it's possible to actually send the full stream data
before calling send().
- On partial write, queue up the rest of the buffer and report success.

[1] https://github.com/grpc/grpc/pull/28432/files

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list