Skip to main content
Participant
August 22, 2013
Answered

RTMPS connection delayed due to direct connection attempt

  • August 22, 2013
  • 1 reply
  • 1106 views

Hi everybody,

I have a big issue with the way RTMPS connections are initiated in flash player.

One of my customer network infrastructure doesn't allow direct connections to my server through the port 443 but allows proxified connections (by the use of CONNECT method).

The problem is that flash player waits for the direct connection attempt to fail before trying the proxified connection... and on this network infrastructure direct connection timeout is 20s (I cannot change that).

The users need to wait that time to get connected to the server...

Is there a way to tell the flash player not to try the direct connection, or not to wait for this connection to timeout ?

Maybe a directive in the proxy autoconfig file (.pac) ?

I already tried each NetConnection proxyType parameter values without success.

Any help would be much appreciated !

This topic has been closed for replies.
Correct answer sinious

You mentioned the "CONNECT" method. You've tried "CONNECTOnly" which forces it to use the CONNECT method by default first and it still isn't obeying?

From docs on NetConnection.proxyType:

Set the proxyType property before calling the NetConnection.connect() method.

...

If the property is set to "CONNECTOnly", the player tries to use the CONNECT method first. If that fails, there is no fallback.

1 reply

sinious
siniousCorrect answer
Legend
August 22, 2013

You mentioned the "CONNECT" method. You've tried "CONNECTOnly" which forces it to use the CONNECT method by default first and it still isn't obeying?

From docs on NetConnection.proxyType:

Set the proxyType property before calling the NetConnection.connect() method.

...

If the property is set to "CONNECTOnly", the player tries to use the CONNECT method first. If that fails, there is no fallback.

StefanMacAuthor
Participant
August 23, 2013

Thank you so much, I don't know how could have I missed this value but it worked flawlessly.

The only drawback is that I now need to initiate 2 parallel RTMPS connections (one with CONNECTOnly, one with best) to allow users not behind a proxy to connect.

sinious
Legend
August 23, 2013

Learn something new every day or you're not on the ball ;). You're welcome and good luck!