开发者

How does Flash and socket connections work on the web?

开发者 https://www.devze.com 2023-04-11 11:10 出处:网络
I am trying to debug a socket connection issue between flash in a web browser and flash in a client type program. The connection is closing properly in the web, so I would like to understand how the w

I am trying to debug a socket connection issue between flash in a web browser and flash in a client type program. The connection is closing properly in the web, so I would like to understand how the web side of things work.

Right now I can load up a remote flash file in a web browser and that triggers a connection ESTABLISHED开发者_如何学编程 stat when viewing with netstats -fn. When I close the dialog which runs some javascript to remove the flash from the dom, the connection stats goes to TIME_WAIT.

Does the act of removing the flash from the html DOM sever the flash connection which triggers a TIME_WAIT state? How does that process work?


If you're using flash.net.Socket, observe the behavior of calling socket.close() manually. It's up to the Flash runtime (as it's a fully binary plugin separate from the browser) how to close sockets.

The TIME_WAIT state is part of your computer's networking stack. When you actively close a socket, it goes into the TIME_WAIT state.

TIME-WAIT - represents waiting for enough time to pass to be sure the remote TCP received the acknowledgment of its connection termination request.

How does Flash and socket connections work on the web?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号