You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@royale.apache.org by Carlos Rovira <ca...@apache.org> on 2018/12/17 10:31:39 UTC

Apache Flex AIR Application problems with a limitation of two HTTP request on windows

Hi,

we are in the process of encapsulate an existing Apache Flex app in Adobe
AIR to overcome the #flash2020 problem with browsers.

In this transition, we found a problem with Adobe AIR in windows with a
limit of two HTTP request to the same server. This seems due to Adobe AIR
using WinlNet on Windows that has this 2 limit http request.

Seems we didn't saw this problem with Flex in browsers since those left
behind this limit and allow this days 6 concurrent calls, but AIR, since
used WinlNet, continues with the 2 concurrent call limit, that is a problem
nowadays.

In the other hand don't find any reference to this problem on the internet,
or some solution to apply in Adobe ARI, so maybe there's something I'm
missing, since this problem should be found by many people trying to
leverage existing Flex apps in AIR (or even creating others).

Must say this problem is seen with request that needs several time (due to
some server processing) to complete and send a response.

If anyone know some way to overcome this will be of great help

Thanks in advance for your help

-- 
Carlos Rovira
http://about.me/carlosrovira

Re: Apache Flex AIR Application problems with a limitation of two HTTP request on windows

Posted by Piotr Zarzycki <pi...@gmail.com>.
Carlos,

Maybe try post problem on Flex users list.

Piotr

On Thu, Dec 20, 2018, 12:49 PM Carlos Rovira <ca...@apache.org>
wrote:

> Hi Olaf,
>
> yes the problem is doing http request to same server, we tried to some
> changes with subdomains and that works, but doesn't seem the best solution,
> but somewhat "hacking" ;)
>
> we're investigating some paths to solve this. Since this affects our
> RemoteObject operations, our focus is in BlazeDS and ROs. So we're trying
> to find ways that is already supported by Flex and BlazeDS. So as you say,
> things like queuing could be an option, although I was expecting that
> others was affected with this problem before and some way to overcome with
> AIR in some official way...but seems it's not the case.
>
> Anyway, I think we'll find some way finally that could fix our use case :)
>
> Thanks for your suggestion :)
>
> Carlos
>
>
>
>
> El mié., 19 dic. 2018 a las 20:16, Olaf Krueger (<ma...@olafkrueger.net>)
> escribió:
>
>> Hi Carlos,
>>
>> interesting topic, good to know about it!
>>
>> If I understand it correctly, the connection limit is related to the same
>> domain name.
>> Maybe one solution could be to outsource heavy server-side requests to
>> another server/domain?
>>
>> If that doesn't work, is it not just a possibility to queue your requests?
>>
>> Olaf
>>
>>
>>
>> --
>> Sent from: http://apache-royale-users.20374.n8.nabble.com/
>>
>
>
> --
> Carlos Rovira
> http://about.me/carlosrovira
>
>

Re: Apache Flex AIR Application problems with a limitation of two HTTP request on windows

Posted by Carlos Rovira <ca...@apache.org>.
Hi,
thanks for the suggestions, our problem is that server process is very
complex and calls lots of external services. All of that requires time.
It's clear that we need a refactor in server side.

I''ll be posting this on flex user list as Piotr says

thanks all for the support! :)

Carlos


El jue., 20 dic. 2018 a las 15:01, Olaf Krueger (<ma...@olafkrueger.net>)
escribió:

> Hi Carlos,
> just for the case if you end up to queue your requests:
> There's a "PureMVC AsyncCommand utility" available which does something
> like
> this [1]:
>
> "The AsyncCommand utility offers a solution to the problem of executing a
> series of commands each of which may need to complete one or more
> asynchronous operations before the next command is executed."
>
> I know you don't use PureMVC, but maybe it is helpful for some inspiration.
>
> Olaf
>
>
> [1]
> https://github.com/PureMVC/puremvc-as3-util-asynccommand/wiki
>
>
>
>
>
> --
> Sent from: http://apache-royale-users.20374.n8.nabble.com/
>


-- 
Carlos Rovira
http://about.me/carlosrovira

Re: Apache Flex AIR Application problems with a limitation of two HTTP request on windows

Posted by Olaf Krueger <ma...@olafkrueger.net>.
Hi Carlos,
just for the case if you end up to queue your requests:
There's a "PureMVC AsyncCommand utility" available which does something like
this [1]:

"The AsyncCommand utility offers a solution to the problem of executing a
series of commands each of which may need to complete one or more
asynchronous operations before the next command is executed."

I know you don't use PureMVC, but maybe it is helpful for some inspiration.

Olaf


[1]
https://github.com/PureMVC/puremvc-as3-util-asynccommand/wiki





--
Sent from: http://apache-royale-users.20374.n8.nabble.com/

Re: Apache Flex AIR Application problems with a limitation of two HTTP request on windows

Posted by Carlos Rovira <ca...@apache.org>.
Hi Olaf,

yes the problem is doing http request to same server, we tried to some
changes with subdomains and that works, but doesn't seem the best solution,
but somewhat "hacking" ;)

we're investigating some paths to solve this. Since this affects our
RemoteObject operations, our focus is in BlazeDS and ROs. So we're trying
to find ways that is already supported by Flex and BlazeDS. So as you say,
things like queuing could be an option, although I was expecting that
others was affected with this problem before and some way to overcome with
AIR in some official way...but seems it's not the case.

Anyway, I think we'll find some way finally that could fix our use case :)

Thanks for your suggestion :)

Carlos




El mié., 19 dic. 2018 a las 20:16, Olaf Krueger (<ma...@olafkrueger.net>)
escribió:

> Hi Carlos,
>
> interesting topic, good to know about it!
>
> If I understand it correctly, the connection limit is related to the same
> domain name.
> Maybe one solution could be to outsource heavy server-side requests to
> another server/domain?
>
> If that doesn't work, is it not just a possibility to queue your requests?
>
> Olaf
>
>
>
> --
> Sent from: http://apache-royale-users.20374.n8.nabble.com/
>


-- 
Carlos Rovira
http://about.me/carlosrovira

Re: Apache Flex AIR Application problems with a limitation of two HTTP request on windows

Posted by Olaf Krueger <ma...@olafkrueger.net>.
Hi Carlos,

interesting topic, good to know about it!

If I understand it correctly, the connection limit is related to the same
domain name.
Maybe one solution could be to outsource heavy server-side requests to
another server/domain?

If that doesn't work, is it not just a possibility to queue your requests?

Olaf



--
Sent from: http://apache-royale-users.20374.n8.nabble.com/

Re: Apache Flex AIR Application problems with a limitation of two HTTP request on windows

Posted by Carlos Rovira <ca...@apache.org>.
Hi Jan,

many thanks for the suggestion, we finally took another direction in the
overall process (Java/Flex), but I think is good to hear more solutions to
the original problem so others finding it could get this ideas

thanks! :)

Carlos

El lun., 7 ene. 2019 a las 9:22, jan.weber (<Ja...@dallmeier.com>)
escribió:

> So, the raw-text format was removed in my previous reply; here the content
> of
> the batch/cmd file:
>
> @ECHO OFF
>
> REG add
> "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet
> Settings" /v MaxConnectionsPerServer  /t REG_DWORD /d 16 /f
>
> ECHO true
>
>
>
> --
> Sent from: http://apache-flex-users.2333346.n4.nabble.com/
>


-- 
Carlos Rovira
http://about.me/carlosrovira

Re: Apache Flex AIR Application problems with a limitation of two HTTP request on windows

Posted by "jan.weber" <Ja...@dallmeier.com>.
So, the raw-text format was removed in my previous reply; here the content of
the batch/cmd file:

@ECHO OFF

REG add
"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet
Settings" /v MaxConnectionsPerServer  /t REG_DWORD /d 16 /f

ECHO true



--
Sent from: http://apache-flex-users.2333346.n4.nabble.com/

Re: Apache Flex AIR Application problems with a limitation of two HTTP request on windows

Posted by "jan.weber" <Ja...@dallmeier.com>.
I read the original thread where the creation of an ANE was suggested in
order to manipulate the registry of Windows.

An easier way would be to create a Batch (or cmd) File for this and call
this batch file with an AS3 NativeProcess.

E.g. something like this:


[HTTP_Limit.cmd]




// 16 would be the new value for MaxConnectionsPerServer  
// REG_DWORD is the Registry Value Type. The value "REG_DWORD" is just an
assumption.




--
Sent from: http://apache-flex-users.2333346.n4.nabble.com/

Re: Apache Flex AIR Application problems with a limitation of two HTTP request on windows

Posted by Scott Mathewson <sc...@matheson.it>.
Hi I may have to do the same encapsulation, as it is Xmas any learning you would
Like  to share 

Sent from my iPhone

> On 24 Dec 2018, at 10:00, Carlos Rovira <ca...@apache.org> wrote:
> 
> Hi,
> 
> reposting this here, since maybe is better mailing list, instead of Apache
> Royale.
> 
> This is the thread on Royale with some suggestions on how to fix the
> problem. But I was searching for something more easy and close to Adobe AIR
> and Apache Flex.
> 
> http://apache-royale-users.20374.n8.nabble.com/Apache-Flex-AIR-Application-problems-with-a-limitation-of-two-HTTP-request-on-windows-td2163.html
> 
> thanks in advance for any help on this issue
> 
> Carlos
> 
> 
> ---------- Forwarded message ---------
> From: Carlos Rovira <ca...@apache.org>
> Date: lun., 17 dic. 2018 a las 11:31
> Subject: Apache Flex AIR Application problems with a limitation of two HTTP
> request on windows
> To: <us...@royale.apache.org>
> 
> 
> Hi,
> 
> we are in the process of encapsulate an existing Apache Flex app in Adobe
> AIR to overcome the #flash2020 problem with browsers.
> 
> In this transition, we found a problem with Adobe AIR in windows with a
> limit of two HTTP request to the same server. This seems due to Adobe AIR
> using WinlNet on Windows that has this 2 limit http request.
> 
> Seems we didn't saw this problem with Flex in browsers since those left
> behind this limit and allow this days 6 concurrent calls, but AIR, since
> used WinlNet, continues with the 2 concurrent call limit, that is a problem
> nowadays.
> 
> In the other hand don't find any reference to this problem on the internet,
> or some solution to apply in Adobe ARI, so maybe there's something I'm
> missing, since this problem should be found by many people trying to
> leverage existing Flex apps in AIR (or even creating others).
> 
> Must say this problem is seen with request that needs several time (due to
> some server processing) to complete and send a response.
> 
> If anyone know some way to overcome this will be of great help
> 
> Thanks in advance for your help
> 
> -- 
> Carlos Rovira
> http://about.me/carlosrovira
> 
> 
> 
> -- 
> Carlos Rovira
> http://about.me/carlosrovira


Apache Flex AIR Application problems with a limitation of two HTTP request on windows

Posted by Carlos Rovira <ca...@apache.org>.
Hi,

reposting this here, since maybe is better mailing list, instead of Apache
Royale.

This is the thread on Royale with some suggestions on how to fix the
problem. But I was searching for something more easy and close to Adobe AIR
and Apache Flex.

http://apache-royale-users.20374.n8.nabble.com/Apache-Flex-AIR-Application-problems-with-a-limitation-of-two-HTTP-request-on-windows-td2163.html

thanks in advance for any help on this issue

Carlos


---------- Forwarded message ---------
From: Carlos Rovira <ca...@apache.org>
Date: lun., 17 dic. 2018 a las 11:31
Subject: Apache Flex AIR Application problems with a limitation of two HTTP
request on windows
To: <us...@royale.apache.org>


Hi,

we are in the process of encapsulate an existing Apache Flex app in Adobe
AIR to overcome the #flash2020 problem with browsers.

In this transition, we found a problem with Adobe AIR in windows with a
limit of two HTTP request to the same server. This seems due to Adobe AIR
using WinlNet on Windows that has this 2 limit http request.

Seems we didn't saw this problem with Flex in browsers since those left
behind this limit and allow this days 6 concurrent calls, but AIR, since
used WinlNet, continues with the 2 concurrent call limit, that is a problem
nowadays.

In the other hand don't find any reference to this problem on the internet,
or some solution to apply in Adobe ARI, so maybe there's something I'm
missing, since this problem should be found by many people trying to
leverage existing Flex apps in AIR (or even creating others).

Must say this problem is seen with request that needs several time (due to
some server processing) to complete and send a response.

If anyone know some way to overcome this will be of great help

Thanks in advance for your help

-- 
Carlos Rovira
http://about.me/carlosrovira



-- 
Carlos Rovira
http://about.me/carlosrovira