While running webdriver, 3 minutes into running, I get the following exception and Webdriver crashes.
I am using only one webdriver instance and one FirefoxDriver pr
If your situation is like mine, where you
- open port 1
- connect to machine
- ??
- close port 1
- open port 1
- connect to different machine
try adding socket.setSoLinger(true, 0);
directly before socket.close();.
Like so:
socket.setSoLinger(true, 0);
socket.close();
This forces the OS to release the socket, rather than putting it in a TIME_WAIT state.