Details
Description
Hello,
i am using Actionscript3 and Zend_Amf to retrieve Data from a Database, which works quite fine in the beginning, but after about 230 NetConnections (sometimes also far earlier) i get this Error:
Error opening URL 'http://www.{URL}/index.php'
Error #2044: Unhandled NetStatusEvent:. level=error, code=NetConnection.Call.Failed
at datenManager::NummerHoler/getDrawingId()
I connect very often, up to 100 times at once, but this doesnt seem to be the problem, because it works fine in the beginning. I get the same error when doing it one by one.
The .as:
public function getDrawingId(number) {
var nc:NetConnection = new NetConnection();
nc.connect("http://www.{URL}/index.php");
var res:Responder = new Responder(onResult, onError);
nc.call("getDrawingId4.getId", res, number);
}
function onResult(e:Object):void {
myParent.incomingData(e);
}
function onError(e:Object):void {
trace(e);
}
The index.php:
<?php
ini_set("include_path", ini_get("include_path") . ":./frameworks");
require_once 'Zend/Amf/Server.php';
require_once 'ArrayReceiver4.php';
require_once 'getDrawingId4.php';
require_once 'getMoreIds4.php';
$server = new Zend_Amf_Server();
$server->setClass("ArrayReceiver4");
$server->setClass("getDrawingId4");
$server->setClass("getMoreIds4");
echo($server->handle());
?>
In getDrawingId4.php i connect to the server, do a query and return an array.
For testing, i just returned the incoming int which caused the same error.
Thank you very much,
Patrick