Closed xspanger3770 closed 1 year ago
The current implementation only sets the "read" timeout, which is separate from the initial connection timeout. In other words, no data has arrived within the timeout period, but after a successful connection has been established.
It would probably be worth also allowing the initial connection timeout to be set as well. I will add that in the next version.
Thanks!
When running
SeedlinkReader reader = new SeedlinkReader("rtweb.units.it", 18000, 10, false);
With a seedlink host that for some reason takes long time to respond (for me it's
rtweb.units.it
), the timeout of 10 seconds I tried doesn't seem to workExpected behavior
Code that finishes execution after the 10 seconds with an error if the host is not responding
Actual behavior
Code executes for much longer time (over 2 minutes) before timeout occurs
Am I missing something?