All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jamal Hadi Salim <jhs@mojatatu.com>
To: linux-sctp@vger.kernel.org
Subject: Re: undetected closed apps
Date: Sat, 14 Dec 2013 15:27:00 +0000	[thread overview]
Message-ID: <52AC78C4.8040207@mojatatu.com> (raw)
In-Reply-To: <52AC7375.6010505@mojatatu.com>

More info:

1) In the non-working case I dont see the shutdown sequence on tcpdump
2) Thing seem to break only when i have a number of SEND_FAILED events
when i read. The brain in my stomach is thinking this probably has to
do with some outstanding obsoleted messages which the app didnt have
a chance to do recv on although cat /proc/net/sctp/assocs shows
both send/recv queue at 0.

cheers,
jamal

On 12/14/13 10:16, Jamal Hadi Salim wrote:
>
> I wasnt clear, sorry. Basically I kill the app after it sends
> a 100K or more messages (about 300 bytes each). The server
> is still thinking the client is connected. The client does
> a close/shutdown. I enabled SCTP heartbeats between the client
> and server and running tcpdump after killing the client
> shows heartbeats going on happily.
>
> Sorry - I cant put out out the code, it is too big to cut
> down into something small enough to demonstrate.
>
> cheers,
> jamal
>
>
> On 12/14/13 10:04, Jamal Hadi Salim wrote:
>>
>> Folks,
>>
>> I have a problem which manifests in kernels > 3.8. I am no sure how
>> best to debug it.
>> I have looked at strace and dont see anything different between when it
>> works (kernels <= 3.8) and when it doesnt (kernels > 3.8).
>> When i dump /proc/net/sctp/assocs I can see in the non-working case
>> the socket is still there - which means there is no way for the server
>> to be notified.
>> If kill the server, the socket disappears.
>>
>> Is there something else that would help narrow this down?
>>
>> cheers,
>> jamal
>>
>> PS:
>> Essentially I have a client app that does some nasty stuff (on purpose
>> to test robustness). Client and server are connected locally within same
>> machine.
>> Client sends as fast as it can packets with partial reliability (timeout
>> of about 100ms). The only time client checks for any kernel obsoleted
>> msgs is when the send socket queue write will block.
>


  parent reply	other threads:[~2013-12-14 15:27 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-14 15:04 undetected closed apps Jamal Hadi Salim
2013-12-14 15:16 ` Jamal Hadi Salim
2013-12-14 15:27 ` Jamal Hadi Salim [this message]
2013-12-14 17:06 ` Michael Tuexen
2013-12-14 17:21 ` Jamal Hadi Salim
2013-12-14 17:23 ` Michael Tuexen
2013-12-14 17:36 ` Jamal Hadi Salim
2013-12-14 18:35 ` Jamal Hadi Salim
2013-12-14 18:47 ` Michael Tuexen
2013-12-14 19:09 ` Jamal Hadi Salim
2013-12-14 19:27 ` Jamal Hadi Salim
2013-12-14 20:06 ` Michael Tuexen
2013-12-15 15:21 ` Jamal Hadi Salim
2013-12-15 15:32 ` Michael Tuexen
2013-12-15 19:08 ` Jamal Hadi Salim
2013-12-16 15:19 ` Vlad Yasevich
2013-12-17 13:49 ` Jamal Hadi Salim
2013-12-17 15:11 ` Vlad Yasevich
2013-12-18 12:30 ` Jamal Hadi Salim
2013-12-18 17:58 ` Vlad Yasevich
2013-12-19 14:26 ` Jamal Hadi Salim
2013-12-19 17:24 ` Vlad Yasevich
2013-12-19 18:16 ` Vlad Yasevich
2013-12-20 12:23 ` Jamal Hadi Salim
2013-12-20 12:29 ` Jamal Hadi Salim
2013-12-20 17:00 ` Jamal Hadi Salim
2013-12-20 18:44 ` Jamal Hadi Salim

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=52AC78C4.8040207@mojatatu.com \
    --to=jhs@mojatatu.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.