[Red5] NetConnection.Connect.Failed and retry
Ngoc Dao
ngocdaothanh at gmail.com
Tue Jan 8 20:24:44 PST 2008
> Either show some appConnect, appJoin, or AS3 code or possibly describe the server environment/load. Other wise I can't help.
The program sends CAPTCHA image from Red5 to Flash AS3 client using
AMF3. I attached the source code in this mail. You can also download
at:
http://cntt.tv/system/ngoc/captcha.zip
The remote server mentioned in the previous mail is a:
* Ubuntu 7.10 fresh install
* Pentium 4 2GHz, 1GB RAM
It is a personal server and the network load is almost zero. However,
Red5 always takes ~6min to start. I've heard from the mailing list
that random number entropy generator on larger servers can make Red5
start slower than smaller ones. Generating CAPTCHA needs random
number. Can this be the cause?
Ngoc.
PS:
By the way, the site http://cntt.tv uses OpenKH
(http://rubyforge.org/projects/openkh), which is a software enabling a
group of people to write blog together. Please try it if you want
something like that.
On Jan 9, 2008 7:20 AM, Andy <bowljoman at hotmail.com> wrote:
>
>
>
>
> Welll, that makes sense, my server has never had more than maybe 30
> connections.
>
>
>
> -----Original Message-----
> From: red5-bounces at osflash.org [mailto:red5-bounces at osflash.org] On Behalf
> Of Dan Rossi
> Sent: Tuesday, January 08, 2008 1:43 PM
> To: red5 at osflash.org
>
> Subject: Re: [Red5] NetConnection.Connect.Failed and retry
>
>
>
>
>
> We are getting that problem also but possible because our machines are under
> load and struggling right now so when the cpu is high it literally cant make
> a connection.
>
>
>
>
>
>
> On 09/01/2008, at 8:06 AM, Ngoc Dao wrote:
>
>
>
>
>
> Hello.
>
> I am using both the lastest stable and trunk. I notice this problem
> when esteblishing connection from flash client to Red5:
> * When running Red5 on localhost, the connection is almost esteblished
> on the first try (NetConnection#connect)
> * When running Red5 on another server far away, the connection is not
> always esteblished right away, NetStatusEvent#info#code is
> "NetConnection.Connect.Failed". I have to make a loop (with the
> interval about ~1s) to retry to connect. Usually, the connection is
> esteblished after 2 to 3 retries.
> * The connection is fine, not dropped after it is esteblished.
> * This problem is the same on both Linux (Ubuntu) and Windows (XP) server.
>
> I think there is some problem with the port listening/waiting code of Red5.
>
> Ngoc.
>
> _______________________________________________
> Red5 mailing list
> Red5 at osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org
>
>
> _______________________________________________
> Red5 mailing list
> Red5 at osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: captcha.zip
Type: application/zip
Size: 20630 bytes
Desc: not available
Url : http://osflash.org/pipermail/red5_osflash.org/attachments/20080109/988d3ad6/attachment-0001.zip
More information about the Red5
mailing list