Repository navigation
Commit f694fc0
committed
test(network): keep the CONNECT handler test client fork-free
The handler regression tests forked cat to read the proxy reply, so the
client socket fd was inherited by a second process with a different
binary. The identity resolver correctly denies that as ambiguous
shared-socket ownership (the same invariant
resolve_process_identity_denies_fork_exec_shared_socket_ambiguity pins),
so the tests exercised the deny path instead of the allow path — and on
busy CI runners the deny-path /proc fallback scan exceeded the test
budget and looked like a hang. The client script now uses only bash
builtins (exec, printf, read -d '') so exactly one process owns the
socket, and the child is left to exit on EOF instead of being killed
mid-read.
Signed-off-by: Tony Luo <[email protected]>1 parent 0148b41 commit f694fc0
1 file changed
Lines changed: 12 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8024 | 8024 | | |
8025 | 8025 | | |
8026 | 8026 | | |
8027 | | - | |
8028 | | - | |
| 8027 | + | |
| 8028 | + | |
| 8029 | + | |
| 8030 | + | |
| 8031 | + | |
| 8032 | + | |
8029 | 8033 | | |
8030 | 8034 | | |
8031 | 8035 | | |
8032 | | - | |
| 8036 | + | |
8033 | 8037 | | |
8034 | | - | |
| 8038 | + | |
8035 | 8039 | | |
8036 | 8040 | | |
8037 | 8041 | | |
| |||
8064 | 8068 | | |
8065 | 8069 | | |
8066 | 8070 | | |
8067 | | - | |
| 8071 | + | |
| 8072 | + | |
| 8073 | + | |
| 8074 | + | |
8068 | 8075 | | |
8069 | 8076 | | |
8070 | 8077 | | |
| |||
0 commit comments