Tunnel.php -Apache

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
rst20
Posts: 2
Joined: Sun 01 Apr 2012 05:20

Tunnel.php -Apache

Post by rst20 » Tue 08 Apr 2014 19:00

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

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Re: Tunnel.php -Apache

Post by Dimon » Wed 09 Apr 2014 12:18

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.

mx48
Posts: 1
Joined: Tue 04 Nov 2014 15:53

Re: Tunnel.php -Apache

Post by mx48 » Tue 04 Nov 2014 16:04

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

ViktorV
Devart Team
Posts: 3168
Joined: Wed 30 Jul 2014 07:16

Re: Tunnel.php -Apache

Post by ViktorV » Wed 05 Nov 2014 07:15

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.

Post Reply