BoltEngine / Bolt-Tracker

New issue tracker for Photon Bolt
10 stars 2 forks source link

BoltConfig.connectionRequestAttempts not respected #146

Closed nlebedenco closed 4 years ago

nlebedenco commented 4 years ago

Setting BoltConfig.connectionRequestAttempts ( "Connect Attempts" in Bolt Settings ) has no effect and the client keeps trying to connect indefinitely.

Expected Behaviour: client should stop trying to connect after the configured number of attempts gets exceeded and invoke ConnectFailed.

ramonmelo commented 4 years ago

Hello @nlebedenco ,

Can you elaborate more about the "keep connecting indefinitely"?

Are you seeing in the logs (i) <TARGET_IP> retrying connect ... or (ii) Sent PING N to Player K at <TARGET_IP_PORT> ?

The BoltConfig.connectionRequestAttempts configuration is used to limit the number of connection tries when using a Server IP to join a game. When joining a Photon Session, the NAT punch procedure will ensure both ends of the connection can exchange data before trying to connect directly, where the connectionRequestAttempts is used.