You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way to cause the pycapnp server implementation to send a KjException with Type kj::Exception::Type::DISCONNECTED to the client?
Background We have a streaming mechanism based on the stream functionality. The Client is implemented in c++ and expects a kj::Exception of type kj::Exception::Type::DISCONNECTED for a proper disconnect.
As an additional note the server is no longer needed after that disconnect. Also, the only reference to this server is held by pycapnp itself.
Is there a way to cause the pycapnp server implementation to send a KjException with Type
kj::Exception::Type::DISCONNECTED
to the client?Background We have a streaming mechanism based on the
stream
functionality. The Client is implemented in c++ and expects akj::Exception
of typekj::Exception::Type::DISCONNECTED
for a proper disconnect.As an additional note the server is no longer needed after that disconnect. Also, the only reference to this server is held by pycapnp itself.
I tried doing that in the python client by:
The C++ client does receive the exception but it is of type
kj::Exception::Type::FAILED
which makes kind of sense when looking at the pycapnp code.Is there a way of achieving this or is it simply not possible?
The text was updated successfully, but these errors were encountered: