夜一林风
夜一林风

Reputation: 1327

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

Upvotes: 13

Views: 268

Answers (1)

edlerd
edlerd

Reputation: 2145

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.

Upvotes: 2

Related Questions