MSG_EOR flag in conjunction with SOCK_STREAM

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



A question about using a SOCK_STREAM socket (one-to-one TCP-style) and checking for the MSG_EOR flag.

If, on a given association (i.e. a single file descriptor, as per the one-to-one TCP-style SOCK_STREAM socket semantics), a message is received via sctp_recvmsg() with the MSG_EOR flag *not* set (such that more of the message is yet to be retrieved), does LKSCTP guarantee that the subsequent call to sctp_recvmsg() will still pertain to the same message (i.e. record)?

That is, could the following message sequence (as returned by sctp_recvmsg(); not necessarily in this order on the wire) ever occur in subsequent calls to sctp_recvmsg() on the aforementioned file descriptor?

MSG A, part 1
MSG A, part 2
MSG A, part 3
MSG B
MSG A, part 4
MSG A, part 5 (EOR)
.
.
.

Or will the kernel always guarantee the following:

MSG A, part 1
MSG A, part 2
MSG A, part 3
MSG A, part 4
MSG A, part 5 (EOR)
MSG B
.
.
.

If the former is indeed possible, can the 'interleaving' only occur within separate streams of the association?  Or can it also occur within a single given stream?

Can unordered data ever cause this to occur?

--
To unsubscribe from this list: send the line "unsubscribe linux-sctp" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Networking Development]     [Linux OMAP]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux