Commit bd965ef
RHEL-101554: [viosock/tcp-bridge] Exit threads when recv read 0 bytes
According to https://learn.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-recv
If the connection has been gracefully closed, the return value is zero.
This means that connection is closed and service can stop bridging
actions.
Signed-off-by: Konstantin Kostiuk <[email protected]>1 parent f33d3a3 commit bd965ef
1 file changed
+16
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
102 | 110 | | |
103 | 111 | | |
104 | 112 | | |
| |||
123 | 131 | | |
124 | 132 | | |
125 | 133 | | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
126 | 142 | | |
127 | 143 | | |
128 | 144 | | |
| |||
0 commit comments