I use WampServer for development testing purposes on my local computer (windows 8). I don't usually turn off the computer, I just close the cover (a laptop) and it sleeps. When I open it again, the server icon in the taskbar is still green, showing that everything is running, but when I try to connect to my server, I get the following error:
Fatal error on line 9 in file C:\...\server\connect.inc
Error: PDO::__construct(): send of 5 bytes failed with errno=10053
An established connection was aborted by the software in your host machine.
The error is occurring when I connect to the MySQL server, with the following code:
$conn=new PDO($mysqlhoststring, $mysqlusername, $mysqlpassword,
array(PDO::ATTR_PERSISTENT => true));
If I restart all services in WampServer, then it works again.
Any suggestions appreciated.