1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
# test waiting for splice finish with read and eof has happend
use strict;
use warnings;
our %args = (
client => {
# fill server buffer, relay send buffer, half relay recv buffer
# then send eof
len => 2**13 + 2**10,
},
relay => {
nonblocking => 1,
readblocking => 1,
sndbuf => 2**12,
rcvbuf => 2**12,
},
server => {
# wait until all buffers are filled and client sends eof
func => sub { sleep 4; read_stream(@_); },
rcvbuf => 2**12,
},
len => 9216,
md5 => "6d263239be35ccf30cb04c5f58a35dbe",
);
|