* Clean up messages for a particular stream
@ 2015-06-30 16:56 Jerry Jerry
2015-06-30 17:18 ` Vlad Yasevich
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Jerry Jerry @ 2015-06-30 16:56 UTC (permalink / raw)
To: linux-sctp
Hello everyone,
We currently encounter an issue where we re-use the streams in a SCTP
connection. However, data from different message contexts may co-exist
in the send/recv buffers for that reused stream. I'm wondering if
there is any special API that allow us to flush the data for just one
particular stream in a SCTP connection just before we reuse it, or we
have to do this from application?
I've been searching but were unable to find a good answer yet. Your
advices would be greatly appreciated!
Regards,
Jerry
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Clean up messages for a particular stream
2015-06-30 16:56 Clean up messages for a particular stream Jerry Jerry
@ 2015-06-30 17:18 ` Vlad Yasevich
2015-06-30 17:38 ` Marcelo Ricardo Leitner
2015-06-30 17:41 ` Marcelo Ricardo Leitner
2 siblings, 0 replies; 4+ messages in thread
From: Vlad Yasevich @ 2015-06-30 17:18 UTC (permalink / raw)
To: linux-sctp
On 06/30/2015 12:56 PM, Jerry Jerry wrote:
> Hello everyone,
>
> We currently encounter an issue where we re-use the streams in a SCTP
> connection. However, data from different message contexts may co-exist
> in the send/recv buffers for that reused stream. I'm wondering if
> there is any special API that allow us to flush the data for just one
> particular stream in a SCTP connection just before we reuse it, or we
> have to do this from application?
>
> I've been searching but were unable to find a good answer yet. Your
> advices would be greatly appreciated!
>
You are looking for an implementation of rfc6525. Sadly we don't
have a configuration for this extension, but patches are always welcome.
-vlad
> Regards,
> Jerry
> --
> To unsubscribe from this list: send the line "unsubscribe linux-sctp" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Clean up messages for a particular stream
2015-06-30 16:56 Clean up messages for a particular stream Jerry Jerry
2015-06-30 17:18 ` Vlad Yasevich
@ 2015-06-30 17:38 ` Marcelo Ricardo Leitner
2015-06-30 17:41 ` Marcelo Ricardo Leitner
2 siblings, 0 replies; 4+ messages in thread
From: Marcelo Ricardo Leitner @ 2015-06-30 17:38 UTC (permalink / raw)
To: linux-sctp
Hi,
In-Reply-To: <CAAyB5c+_yBxrer7tA5a69E+-0nsZRCqLV4+MVHEAP_Ppg49whg@mail.gmail.com>
On Tue, Jun 30, 2015 at 09:56:50AM -0700, Jerry Jerry wrote:
> Hello everyone,
>
> We currently encounter an issue where we re-use the streams in a SCTP
> connection. However, data from different message contexts may co-exist
> in the send/recv buffers for that reused stream. I'm wondering if
> there is any special API that allow us to flush the data for just one
> particular stream in a SCTP connection just before we reuse it, or we
> have to do this from application?
>
> I've been searching but were unable to find a good answer yet. Your
> advices would be greatly appreciated!
In short, no.. you have to do it in your application.
If you're using unordered delivery, I'm afraid that clean cut is just
not possible at all as there will always be the chance of a late packet
getting delivered. That is, unless you add a layer abstracting that,
like a substream id or something like that...
And if you're using ordered delivery, it would mean to close/re-open a
stream or a signaling for such event, but those operations don't exist.
Marcelo
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Clean up messages for a particular stream
2015-06-30 16:56 Clean up messages for a particular stream Jerry Jerry
2015-06-30 17:18 ` Vlad Yasevich
2015-06-30 17:38 ` Marcelo Ricardo Leitner
@ 2015-06-30 17:41 ` Marcelo Ricardo Leitner
2 siblings, 0 replies; 4+ messages in thread
From: Marcelo Ricardo Leitner @ 2015-06-30 17:41 UTC (permalink / raw)
To: linux-sctp
On Tue, Jun 30, 2015 at 01:18:09PM -0400, Vlad Yasevich wrote:
> On 06/30/2015 12:56 PM, Jerry Jerry wrote:
> > Hello everyone,
> >
> > We currently encounter an issue where we re-use the streams in a SCTP
> > connection. However, data from different message contexts may co-exist
> > in the send/recv buffers for that reused stream. I'm wondering if
> > there is any special API that allow us to flush the data for just one
> > particular stream in a SCTP connection just before we reuse it, or we
> > have to do this from application?
> >
> > I've been searching but were unable to find a good answer yet. Your
> > advices would be greatly appreciated!
> >
>
> You are looking for an implementation of rfc6525. Sadly we don't
> have a configuration for this extension, but patches are always welcome.
Wasn't aware of this RFC, thx.
Marcelo
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-06-30 17:41 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-30 16:56 Clean up messages for a particular stream Jerry Jerry
2015-06-30 17:18 ` Vlad Yasevich
2015-06-30 17:38 ` Marcelo Ricardo Leitner
2015-06-30 17:41 ` Marcelo Ricardo Leitner
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.