-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Socket timeout when pushing a significant amount of data #2483
Comments
I don't see a reason why we can't make it configurable. Maybe something like:
and then when In the meantime, I don't see any problem with bumping that IPC socket timeout some. |
Cool, yeah, I don't see any problem in bumping it up either. |
I guess I can close this, since #2485 was merged. |
What was wrong?
When pushing a big chunk of data to
trin
(>400 thousand hex chars), I got this:I'm pretty open to the idea that
trin
is doing something wrong here, but I'm not sure what it might be yet. But it seems likely to me that I'm pushing more data than usual here. Note that increasing the timeout does seem to prevent the error. (It's flaky, but happened once in the first two runs with the original timeout, and hasn't happened since on 5+ runs with the longer timeout)How can it be fixed?
The workaround I found so far is to patch my virtualenv copy of web3.py in
web3/providers/ipc.py
at:It seems that the
timeout
field is not set whenPersistantSocket
callsget_ipc_socket()
, so there is no obvious way to configure it as a user.This workaround won't work for long, because I can't ask users to do that. I guess I would have to do some pretty ugly monkey-patching to hide the issue from users.
The text was updated successfully, but these errors were encountered: