-
Notifications
You must be signed in to change notification settings - Fork 609
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
HeaderServerChannel throw uncaught exception. #237
Comments
@supapo This means that you are sending a malformed message. This is because when listening on cpp2 we are expecting an explicit formatted message. This is useful because this prevents you to process the data when you know right away that your message is corrupted. You should be using a cpp2 client to communicate with a cpp2 server. Otherwise, you will need to add a check in thrift to understand a telnet message. |
The crash occurs on a Duplex server only. When sending a random string. the crash log on the server screen: bin/example_server I0928 11:34:07.423589 15645 ExampleServer.cpp:35] ChatRoom Server running on port: 7777 |
Do not use DuplexServer. It's deprecated and unmaintained! We have internal talks of deleting it pretty soon. |
In case we listen with cpp2 , telneting to the server and drop some string the server will crash.
We solve it by comment out the "throw" on
thrift/lib/cpp2/async/HeaderServerChannel.cpp : 117
this is the log from the server:
The text was updated successfully, but these errors were encountered: