diff options
| author | Linus Nordberg <linus@nordu.net> | 2012-04-25 15:23:06 +0200 | 
|---|---|---|
| committer | Linus Nordberg <linus@nordu.net> | 2012-04-25 15:23:06 +0200 | 
| commit | 13014bf93ef9acc96d0ef61ab3ba9e0bce93fc14 (patch) | |
| tree | 6d1b5b2355faf45e45076a5ff66cc2899699e5c8 | |
| parent | 5ca193d76d16b4dcb0ef7a2b07e4da9bd9aa3dad (diff) | |
Missing response packet in rs_conn_receive_packet doesn't have to be a bug.
| -rw-r--r-- | lib/conn.c | 5 | 
1 files changed, 4 insertions, 1 deletions
| @@ -269,7 +269,10 @@ rs_conn_receive_packet (struct rs_connection *conn,        || (req_msg  	  && packet_verify_response (pkt->conn, pkt, req_msg) != RSE_OK))      { -      assert (rs_err_conn_peek_code (pkt->conn)); +      if (rs_err_conn_peek_code (pkt->conn) == RSE_OK) +        /* No packet and no error on the stack _should_ mean that the +           server hung up on us.  */ +        rs_err_conn_push (pkt->conn, RSE_DISCO, "no response");        return rs_err_conn_peek_code (conn);      } | 
