Codebase list libpoe-component-sslify-perl / 48c4ba7
switch to POE::Filter::Block to reduce issues from Filter::Line Apocalypse 9 years ago
4 changed file(s) with 8 addition(s) and 9 deletion(s). Raw diff Collapse all Expand all
2222 Alias => 'myserver',
2323 Address => '127.0.0.1',
2424 Port => 0,
25
25 ClientFilter => ['POE::Filter::Block', 'BlockSize' => length $bigpacket],
2626 Started => sub
2727 {
2828 use Socket qw/sockaddr_in/;
9090 Alias => 'myclient',
9191 RemoteAddress => '127.0.0.1',
9292 RemotePort => $port,
93
93 Filter => ['POE::Filter::Block', 'BlockSize' => length $bigpacket],
9494 Connected => sub
9595 {
9696 ok(1, 'CLIENT: connected');
2222 Alias => 'myserver',
2323 Address => '127.0.0.1',
2424 Port => 0,
25
25 ClientFilter => ['POE::Filter::Block', 'BlockSize' => length $bigpacket],
2626 Started => sub
2727 {
2828 use Socket qw/sockaddr_in/;
8888 Alias => 'myclient',
8989 RemoteAddress => '127.0.0.1',
9090 RemotePort => $port,
91
91 Filter => ['POE::Filter::Block', 'BlockSize' => length $bigpacket],
9292 Connected => sub
9393 {
9494 ok(1, 'CLIENT: connected');
2828 # TODO interestingly, x3 goes over some sort of buffer size and this explodes!
2929 my $bigpacket = join( '-', ('a' .. 'z') x 10000, ('A' .. 'Z') x 10000 ) x 3;
3030
31
3231 POE::Component::Server::TCP->new
3332 (
3433 Alias => 'myserver',
3534 Address => '127.0.0.1',
3635 Port => 0,
37
36 ClientFilter => ['POE::Filter::Block', 'BlockSize' => length $bigpacket],
3837 Started => sub
3938 {
4039 use Socket qw/sockaddr_in/;
10099 Alias => 'myclient',
101100 RemoteAddress => '127.0.0.1',
102101 RemotePort => $port,
103
102 Filter => ['POE::Filter::Block', 'BlockSize' => length $bigpacket],
104103 Connected => sub
105104 {
106105 ok(1, 'CLIENT: connected');
3232 Alias => 'myserver',
3333 Address => '127.0.0.1',
3434 Port => 0,
35
35 ClientFilter => ['POE::Filter::Block', 'BlockSize' => length $bigpacket],
3636 Started => sub
3737 {
3838 use Socket qw/sockaddr_in/;
102102 Alias => 'myclient',
103103 RemoteAddress => '127.0.0.1',
104104 RemotePort => $port,
105
105 Filter => ['POE::Filter::Block', 'BlockSize' => length $bigpacket],
106106 Connected => sub
107107 {
108108 ok(1, 'CLIENT: connected');