Commit 9579e72
committed
Simplify gh21031.phpt and solve flakiness
stream_socket_accept($server, 3) would frequently run into a race-condition
where the call would timeout and return false, triggering an exception when
calling fclose(false) and terminating the process. This would break the
phpt_notify() call in the main process due to a broken pipe. Increase the
timeout to solve this.
Furthermore, remove the proxy in the test that is not necessary to trigger the
original bug solved in 7782b88.1 parent 8972938 commit 9579e72
1 file changed
Lines changed: 5 additions & 31 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
46 | 29 | | |
47 | 30 | | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | 31 | | |
54 | 32 | | |
55 | 33 | | |
| |||
67 | 45 | | |
68 | 46 | | |
69 | 47 | | |
70 | | - | |
71 | | - | |
| 48 | + | |
72 | 49 | | |
73 | 50 | | |
74 | 51 | | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
| 52 | + | |
79 | 53 | | |
80 | 54 | | |
81 | 55 | | |
0 commit comments