-
Notifications
You must be signed in to change notification settings - Fork 982
java.lang.IllegalArgumentException: delay < 0 #349
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
me too,I'm using 'io.socket:socket.io-client:1.0.0' logs: 11-25 18:31:45.005 2020 10604 E io.socket.g.a: Task threw exception |
Using a randomizationFactor value above 1 could lead to generating a negative duration, then throwing: > java.lang.IllegalArgumentException: delay < 0: -1012 > at java.util.Timer.schedule(Timer.java:454) > at io.socket.client.Manager.reconnect(Manager.java:544) This error does not seem related to a long overflow (in the BigInteger.longValue() operation), because the BigInteger.min(this.max) operation before should prevent it. Related: #349
Using a randomizationFactor value above 1 could lead to generating a negative duration, then throwing: > java.lang.IllegalArgumentException: delay < 0: -1012 > at java.util.Timer.schedule(Timer.java:454) > at io.socket.client.Manager.reconnect(Manager.java:544) This error does not seem related to a long overflow (in the BigInteger.longValue() operation), because the BigInteger.min(this.max) operation before should prevent it. Related: #349 Backported from 0cbf01e
Using a randomizationFactor value above 1 could lead to generating a negative duration, then throwing: > java.lang.IllegalArgumentException: delay < 0: -1012 > at java.util.Timer.schedule(Timer.java:454) > at io.socket.client.Manager.reconnect(Manager.java:544) This error does not seem related to a long overflow (in the BigInteger.longValue() operation), because the BigInteger.min(this.max) operation before should prevent it. Related: #349 Backported from 0cbf01e
For future readers: I wasn't able to reproduce, but I've added an additional guard here: 0cbf01e Please reopen if needed. |
Using a randomizationFactor value above 1 could lead to generating a negative duration, then throwing: > java.lang.IllegalArgumentException: delay < 0: -1012 > at java.util.Timer.schedule(Timer.java:454) > at io.socket.client.Manager.reconnect(Manager.java:544) This error does not seem related to a long overflow (in the BigInteger.longValue() operation), because the BigInteger.min(this.max) operation before should prevent it. Related: socketio/socket.io-client-java#349
I'm using io.socket:socket.io-client:0.8.1
The issue was already mentioned here:
[(https://github.com//issues/107)]
java.lang.IllegalArgumentException: delay < 0: -1012 at java.util.Timer.schedule(Timer.java:454) at io.socket.client.Manager.reconnect(Manager.java:544) at io.socket.client.Manager.onclose(Manager.java:524) at io.socket.client.Manager.access$1500(Manager.java:20) at io.socket.client.Manager$6.call(Manager.java:377) at io.socket.emitter.Emitter.emit(Emitter.java:117) at io.socket.engineio.client.Socket.onClose(Socket.java:812) at io.socket.engineio.client.Socket.onError(Socket.java:773) at io.socket.engineio.client.Socket.access$900(Socket.java:31) at io.socket.engineio.client.Socket$4.call(Socket.java:318) at io.socket.emitter.Emitter.emit(Emitter.java:117) at io.socket.engineio.client.Transport.onError(Transport.java:72) at io.socket.engineio.client.transports.WebSocket.access$500(WebSocket.java:28) at io.socket.engineio.client.transports.WebSocket$2$5.run(WebSocket.java:150) at io.socket.thread.EventThread$2.run(EventThread.java:80) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) at java.lang.Thread.run(Thread.java:818)
The text was updated successfully, but these errors were encountered: