-
Notifications
You must be signed in to change notification settings - Fork 231
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
event_listener Web socket error #311
Comments
I've added some debug output in #312 to see the msg we receive. It is likely some websocket control message (server-client send these to verify if the connection is still alive and the subscription could be dropped). In that case this can be ignored for now. We need to implement a more realistic and robust version of the event subscription. Related discussion: #312 (comment) |
* quickfix: pub all fields * add debug output for #311
Closes #311. Adds responding to WebSockets ping messages during the attempt to fetch the next event from the event stream. I debated whether or not to wrap the fetching of the next message in a finite or an infinite loop, but wrapping it in a finite loop would just push that same responsibility further up the stack. Using this approach allows us to do away with the optionality of a `ResultEvent` and simplifies the method signature. Also, I added in a `close` method for the listener to allow one to gracefully close the connection (avoids those ugly `websocket: close 1006 (abnormal closure): unexpected EOF` messages in the Tendermint logs). Signed-off-by: Thane Thomson <[email protected]>
Now that #516 is merged when we update ibc to use latest tendermint we should check that this is fixed. I expect it should be. |
I am currently doing this as part of informalsystems/ibc-rs#90 and informalsystems/ibc-rs#243 |
Note that the new websocket is only on master, its not in v0.16. Not sure if you're gunning for master all at once or doing an intermediary through v0.16 |
I have to get some changes into tendermint-rs as part of this work, so I guess I am going to go for master directly. |
@ancazamfir Is this still an issue? |
Looks like it's fixed, I don't see this anymore. Thanks! |
IBC relayer event monitor, subscribed to Block and Tx events on gaia node, sees this error every ~27sec. It is issued from
tendermint-rs/tendermint/src/rpc/event_listener.rs
Line 105 in bcef28b
The text was updated successfully, but these errors were encountered: