Netdev List
 help / color / mirror / Atom feed
* Why ECONNREFUSED from unix_dgram_sendmsg?
@ 2014-09-11 15:11 Andy Lutomirski
  2014-09-11 15:58 ` Hannes Frederic Sowa
  0 siblings, 1 reply; 3+ messages in thread
From: Andy Lutomirski @ 2014-09-11 15:11 UTC (permalink / raw)
  To: Network Development

What is unix_dgram_sendmsg trying to tell me here?

        if (sock_flag(other, SOCK_DEAD)) {
                /*
                 *      Check with 1003.1g - what should
                 *      datagram error
                 */
                unix_state_unlock(other);
                sock_put(other);

                err = 0;
                unix_state_lock(sk);
                if (unix_peer(sk) == other) {
                        unix_peer(sk) = NULL;
                        unix_state_unlock(sk);

                        unix_dgram_disconnected(sk, other);
                        sock_put(other);
                        err = -ECONNREFUSED;

I'm getting this intermittently on a seqpacket socket when the other
end dies.  Shouldn't this be -ECONNRESET?

git blame doesn't tell me anything here -- this code predates git.

--Andy

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-09-11 17:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-11 15:11 Why ECONNREFUSED from unix_dgram_sendmsg? Andy Lutomirski
2014-09-11 15:58 ` Hannes Frederic Sowa
2014-09-11 17:52   ` Andy Lutomirski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox