Page 1 of 1

Tunnel.php -Apache

Posted: Tue 08 Apr 2014 19:00
by rst20
Hello,

I use the connection with the tunnel.php since more then one year without serious problems, but now we have a customer with 50 clients who connect to the MySQL-Server (Linux) an we see that Apache-Tasks were started and often not ended, so the amount of tasks increases and after a while the apache reaches his limits (255 tasks) and no more access is possible.

In the log of the tunnel.php sometimes is written "Bad Client" what is the meaning of this?

How can we solve the problem? It is urgent, the customer stars to get angry.

Thank for help

Ralf

Re: Tunnel.php -Apache

Posted: Wed 09 Apr 2014 12:18
by Dimon
The "Bad Client" error arises when the stream_socket_accept php method returns error on attempting to accept socket connection.
You can find the information about this method by the link: http://www.php.net/manual/en/function.s ... accept.php
You can ask your administrator about this limit of Apache.

Re: Tunnel.php -Apache

Posted: Tue 04 Nov 2014 16:04
by mx48
Hello,

I'm getting the same logs: "Bad Client", and tasks become more and more.
What exactly solved this problem?
To raise the limit of Apache-Tasks is no solution, for my opinion.

Thanks for helping me

Christian

Re: Tunnel.php -Apache

Posted: Wed 05 Nov 2014 07:15
by ViktorV
Such error can occur if there were no connections to the tunnel script during its lifetime (180 seconds by default). As a solution, you can increase the $LIFETIME variable value in the tunnel.php file.