Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it normal for one socket connection consuming two tcp ports?

I use swift version of Socket.IO and there is only one connection handled by a singleton in an app that I am working.

But in the inspector, it says two tcp ports(49209, 49210) are being used constantly. Is this normal behind the scenes?

enter image description here

like image 582
夜一林风 Avatar asked Nov 01 '16 09:11

夜一林风


1 Answers

This is due to a browsers behaviour. Modern browsers open always two (or more) connections in order to speed up loading of ressources through parallelisation.

like image 150
edlerd Avatar answered Oct 19 '22 23:10

edlerd