This repository was archived by the owner on Feb 8, 2021. It is now read-only.
Commit 80ff863
committed
handle channel and tty read on closed socket
1. when read returns 0, it means remotes has closed socket, for
normal TCP connections.
2. when read returns -ENOTCONN for vsock, it means remote has closed the
socket.
We should be able to just handle case 1) if we patch vsock kernel
implementation to match normal TCP connection behavior.
Signed-off-by: Peng Tao <bergwolf@gmail.com>1 parent 5f4e90c commit 80ff863
2 files changed
+23
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1044 | 1044 | | |
1045 | 1045 | | |
1046 | 1046 | | |
| 1047 | + | |
| 1048 | + | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + | |
| 1052 | + | |
1047 | 1053 | | |
| 1054 | + | |
| 1055 | + | |
| 1056 | + | |
| 1057 | + | |
| 1058 | + | |
1048 | 1059 | | |
1049 | 1060 | | |
1050 | 1061 | | |
| |||
1192 | 1203 | | |
1193 | 1204 | | |
1194 | 1205 | | |
| 1206 | + | |
| 1207 | + | |
| 1208 | + | |
| 1209 | + | |
| 1210 | + | |
| 1211 | + | |
1195 | 1212 | | |
| 1213 | + | |
| 1214 | + | |
| 1215 | + | |
| 1216 | + | |
| 1217 | + | |
1196 | 1218 | | |
1197 | 1219 | | |
1198 | 1220 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
714 | 714 | | |
715 | 715 | | |
716 | 716 | | |
717 | | - | |
| 717 | + | |
718 | 718 | | |
719 | 719 | | |
720 | 720 | | |
| |||
0 commit comments