[ 
https://issues.apache.org/jira/browse/FLEX-28407?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15029274#comment-15029274
 ] 

Romain KELIFA commented on FLEX-28407:
--------------------------------------

We ran into the same issue this week, having to send a custom file format as a 
ByteArray along with some custom mapped AS3 value objects to Zend AMF (knowing 
the file size can range from 100Ko to over 5Mo and request was systematically 
shut after 8-9 seconds on a Windows 10 desktop computer).

The solution is in fact to set two properties with the same value on the 
channel of your RemoteObject.
Let's say you instantiate it programmatically :

var remote : RemoteObject = new RemoteObject("zendamf");

var channel : AMFChannel = new AMFChannel ( "zendamf-application-endpoint", 
"http://domain.com/services/application/public/amf"; );
channel.connectTimeout = 150; // seconds
channel.requestTimeout = 150; // seconds

var channelSet : ChannelSet = new ChannelSet();
channelSet.addChannel(channel);

remote.channelSet = channelSet;
remote.source = "AMF_Service";

Hope this helps !

> RemoteObject times out after 30 seconds every time  (not fixed)
> ---------------------------------------------------------------
>
>                 Key: FLEX-28407
>                 URL: https://issues.apache.org/jira/browse/FLEX-28407
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: RPC: RemoteObject
>    Affects Versions: Adobe Flex SDK 4.5.1 (Release)
>         Environment: Affected OS(s): Windows
> Affected OS(s): Windows 7
> Language Found: English
>            Reporter: Adobe JIRA
>
> If I call a PHP script using RemoteObject and ZendAMF that takes longer than 
> 30 seconds to complete, the request fails, even though max_execution_time on 
> the server is more than 30 seconds.
> (I believe that the max timeout on PC is 60 seconds. But on Android it is for 
> sure only 30 seconds)
> This happens with both AIR and ADL 2.6. (and 2.7)
> When the request fails, Network Monitor says:
> {Fault code=Channel.Call.Failed, Fault string=error, Fault 
> detail=NetConnection.Call.Failed: HTTP: Failed, Destination=zend}
> This also happens when the backend is Coldfusion Flash remoting gateway. 
> Seems to be connected to some sort of a max request timeout outside of the 
> SDK.
> If you follow the direction in the following link 
> http://support.microsoft.com/kb/181050 the issue is actually resolved (only 
> on the machine you make the change on), but it may shed some light on the 
> core cause of this problem.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to