<html><head>

<style id="css_styles"> 
blockquote.cite { margin-left: 5px; margin-right: 0px; padding-left: 10px; padding-right:0px; border-left: 1px solid #cccccc }
blockquote.cite2 {margin-left: 5px; margin-right: 0px; padding-left: 10px; padding-right:0px; border-left: 1px solid #cccccc; margin-top: 3px; padding-top: 0px; }
a img { border: 0px; }
li[style='text-align: center;'], li[style='text-align: center; '], li[style='text-align: right;'], li[style='text-align: right; '] {  list-style-position: inside;}
body { font-family: Segoe UI; font-size: 12pt;   } 
.quote { margin-left: 1em; margin-right: 1em; border-left: 5px #ebebeb solid; padding-left: 0.3em; }
 </style>
</head>
<body>Hello All,<div><br /></div><div>I am trying to run a Python gRPC application in WINE.</div><div><br /></div><div>It turns out the gRPC Windows binding uses WSASend which first tries the "blocking" variant on a overlapped socket.</div><div><br /></div><div>Based on the code, the EXPECTED behaviour is that WSASend is atomic: <span style="font-size: 12pt;">It either sends nothing and  reports WSAEWOULDBLOCK, or it sends everything and reports SUCCESS.</span></div><div><span><br /></span></div><div><span>The behaviour in WINE is:</span></div><div><span>It sends upto the TCP Congestion window, and I haven't seen it report WSAEWOULDBLOCK. (WSASend() returns 0)</span></div><div><br /></div><div><span>Anyone observed this before? How do other programs handle this?</span></div><div><br /></div><div>I reported the same issue at the gRPC group <a href="https://groups.google.com/g/grpc-io/c/-RzRZ867jy0">https://groups.google.com/g/grpc-io/c/-RzRZ867jy0</a></div><div><br /></div><div>Best regards,</div><div><br /></div><div>Ruud </div></body></html>