Skip to main content
yashy2823074
Inspiring
December 11, 2018
Question

AIR is only able to make maximum 4 requests at a time

  • December 11, 2018
  • 1 reply
  • 859 views

AIR is only able to make maximum 4 requests at a time. Is there some way to increase this limit ?

This topic has been closed for replies.

1 reply

Colin Holgate
Inspiring
December 11, 2018

What sort of requests do you mean? For example, are you meaning HTTP requests in a web view?

yashy2823074
Inspiring
December 12, 2018

Yes, HTTP requests, the application makes only 4 concurrent calls and then waits for at least one to return a response before making another one.

Is there any such limitation ? Can we increase such limit ?

Colin Holgate
Inspiring
December 12, 2018

When I'm doing CreateJS I set the number of concurrent connections to 6. That's because I tested a lot of browsers, and the mobile ones, and some desktop ones, were limited to 6. The highest number was for IE 11, which could do 11. It wasn't worth special casing the ones faster than 6, because it was mainly the mobile ones that needed the performance help. CreateJS defaults to 1, so the change I did could make the page load up to six times faster.

Just going from 4 to 6 may not be so dramatic. I'm not sure where AIR inherits the safe 4 value from, but you could read topics like this one:

Maximum concurrent request

that suggests it comes from a system limit. It used to be limited to 2.