diff options
author | Parthasarathy Bhuvaragan <parthasarathy.bhuvaragan@ericsson.com> | 2017-04-26 10:05:01 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-04-28 12:20:42 -0400 |
commit | 4e0df4951e9ecb7ec026a1330ed59f12e8937a95 (patch) | |
tree | 695516ff85fe9a7a30f99f5abda5ce1efd98da5d /sound/mips | |
parent | 42b531de17d2f6bb9293f23398f6d9bb94635c3e (diff) |
tipc: improve error validations for sockets in CONNECTING state
Until now, the checks for sockets in CONNECTING state was based on
the assumption that the incoming message was always from the
peer's accepted data socket.
However an application using a non-blocking socket sends an implicit
connect, this socket which is in CONNECTING state can receive error
messages from the peer's listening socket. As we discard these
messages, the application socket hangs as there due to inactivity.
In addition to this, there are other places where we process errors
but do not notify the user.
In this commit, we process such incoming error messages and notify
our users about them using sk_state_change().
Signed-off-by: Parthasarathy Bhuvaragan <parthasarathy.bhuvaragan@ericsson.com>
Reviewed-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'sound/mips')
0 files changed, 0 insertions, 0 deletions