All of lore.kernel.org
 help / color / mirror / Atom feed
From: Adam Endrodi <adam.endrodi@nokia.com>
To: linux-sctp@vger.kernel.org
Subject: Re: Memory issue with kernel sctp_connectx
Date: Mon, 09 Mar 2015 09:40:36 +0000	[thread overview]
Message-ID: <20150309094036.GJ2684@timmy> (raw)
In-Reply-To: <CACoz=-y7yC27C7_jopeJy=55J_Og9czP9fVY_xVE6Zmoo7apTA@mail.gmail.com>

On Sat, Mar 07, 2015 at 08:44:24PM +0100, ext Danny Smit wrote:
> I changed my code to reflect this, but it doesn't really make a
> difference. For what its worth, I already tried something similar with
> an higher level API to wait for socket notification, which led to the
> same results.
> 
> Whats interesting is that the poll() call returns immediately (within
> milliseconds) regardless of the timeout value. It does set "revents"
> on the struct in [sfd], of which the very first occurrence of this
> call sets revents to 73 (0x49), but all subsequent calls to poll
> within the loop shown above sets revents to 65 (0x48).

So POLLERR (0x08) is reported in all cases.  Perhaps this is the indication
of ABORT you're looking for?

> But every call to sctp_recvmsg() still returns with an error and sets
> errno to 107 (ENOTCONN). Therefore sctp_recvmsg somehow still seems
> unable to read the events.

I'm out of ideas :( Time to involve real experts I guess.

-- 
What doesn't kill you makes you stronger.

  parent reply	other threads:[~2015-03-09  9:40 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-06 10:39 Memory issue with kernel sctp_connectx Danny Smit
2015-03-06 10:52 ` Danny Smit
2015-03-06 11:13 ` Adam Endrodi
2015-03-06 15:42 ` Danny Smit
2015-03-06 16:29 ` Adam Endrodi
2015-03-07 19:44 ` Danny Smit
2015-03-09  9:40 ` Adam Endrodi [this message]
2015-03-09 13:15 ` Danny Smit
2015-03-10 19:28 ` Vlad Yasevich
2015-03-12 11:00 ` Danny Smit

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150309094036.GJ2684@timmy \
    --to=adam.endrodi@nokia.com \
    --cc=linux-sctp@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.