Commit 48c7e53
authored
tcpproxy: support half-close with gvisor conns (#46)
gonet.TCPConn implements CloseRead and CloseWrite, but it is not a
net.TCPConn. Use an interface to look for CloseRead and CloseWrite so
that they are called on gonet.TCPConn.
Updates tailscale/corp#25169
Signed-off-by: James Tucker <jftucker@gmail.com>1 parent 3ce5804 commit 48c7e53
1 file changed
+7
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
355 | 355 | | |
356 | 356 | | |
357 | 357 | | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
358 | 361 | | |
359 | 362 | | |
360 | 363 | | |
361 | | - | |
| 364 | + | |
| 365 | + | |
362 | 366 | | |
363 | 367 | | |
364 | 368 | | |
365 | 369 | | |
366 | 370 | | |
367 | | - | |
| 371 | + | |
| 372 | + | |
368 | 373 | | |
369 | 374 | | |
370 | 375 | | |
| |||
0 commit comments