|
From: <php...@li...> - 2007-09-10 16:02:52
|
Whenever the PHP/JavaBridge on Apache has lost connection to Tomcat, then that was it! If - for example - Tomcat has been brought down and restarted, then the next time I want to call some java-code I get the following notice: -------------------------------------------------------------- Notice: fwrite() [function.fwrite]: send of 117 bytes failed with errno=3D10054 An existing connection was forcibly closed by the remote host. in C:\Program Files\xampp\htdocs\test\Java.inc on line 740 protocol error: , Invalid document end at col 8. Check the back end log for details. Notice: fwrite() [function.fwrite]: send of 11 bytes failed with errno=3D10054 An existing connection was forcibly closed by the remote host. in C:\Program Files\xampp\htdocs\test\Java.inc on line 746 -------------------------------------------------------------- In other words, if one side goes down, one has to bring down the other as well and has to restart both. Only then they will "find" each other again. Couldn't the bridge try to reconnect? I find it a bit tedious and also not very robust, that I always have to bring down both sides in lock-step and can't simply let one run all the time. Michael |