kryonet
kryonet copied to clipboard
Client connect timeout not being used
Client.connect accepts a timeout parameter which is stored so Client.reconnect will use that, however within Client.connect at line 175, tcp.connect uses a hard-coded timeout value of 5000 where the timeout parameter should be used.
@m6246 have you tried changing it to the timeout
value and seeing if it works? You could submit a PR for that.
As #connect
is just calling Socket#connect
this should most definitely work.
Strangely, the timeout is used for reconnecting, see here.
Indeed, that is strange.