r1n0 has asked for the wisdom of the Perl Monks concerning the following question:
Can I force the TCP connection to be closed after each connection? I think too many open TCP connections are being left open.sub StartServer_tcp_incoming_handler{ use HTTP::Proxy; use HTTP::Proxy::HeaderFilter::simple; use Digest::SHA1 qw(sha1_hex); my $port = 30000; my $proxy = HTTP::Proxy->new( host => $Server_IP, max_clients => 80, min_spare_servers => 10, max_keep_alive_requests => 1, port => $Server_Port ); my $filter = HTTP::Proxy::HeaderFilter::simple->new( sub { my ($self, $headers, $request) = @_; my $uri = $request->uri(); ......... ......... ...etc...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: PROCESS: Too many child process, serving the connection
by flexvault (Monsignor) on May 02, 2011 at 12:57 UTC | |
|
Re: PROCESS: Too many child process, serving the connection
by anonymized user 468275 (Curate) on May 02, 2011 at 15:05 UTC |