Commit 7462078f authored by Lubomir Bulej's avatar Lubomir Bulej

Set zero message length indication instead of an empty message.

parent ee3c1aac
......@@ -51,13 +51,8 @@ __connection_close_hook (struct connection * conn) {
// Send an empty message to the server before closing the connection
// to indicate end of processing for that connection.
//
struct message shutdown = {
.message_flags = 0,
.control_size = 0, .classcode_size = 0,
.control = NULL, .classcode = NULL
};
message_send (conn, &shutdown);
uint32_t message_size_data = htonl (0);
connection_send_full (conn, &message_size_data, sizeof (message_size_data));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment