wolf4ood/gremlin-rs

ConnectionStream does not handle pong messages

Closed this issue · 3 comments

gzp79 commented

When connected to cosmos DB it sometimes sends a Pong message.
This message triggers an unimplemented branch in ConnectionStream::recv.

gzp79 commented

I've tried to send it back as a Ping and return an empty vector, but unfortunately it did not work and may require some modification the way recv is used (had no time to investigate it)

Message::Pong(e) => {
                self.0.send(Message::Ping(e)).await.map_err(GremlinError::from)?;
                Ok(Vec::default())
            }

@gzp-crey

Thanks for raising this, let me check.

Hi @gzp-crey

i've pushed a fix. It will be available in the next release

Thanks