AnsweredAssumed Answered

RTCS send() with OPT_SEND_NOWAIT takes a while to return

Question asked by Raj Batra on Mar 31, 2016
Latest reply on Apr 7, 2016 by Raj Batra

I timed sending 1450 bytes via socket send (it's a TCP Stream), on my K64, it can take up to 800 uS. I tried with OPT_SEND_NOWAIT, not using the push flag, and even directly setting the MSG_DONTWAIT in the send command and still see 800uS.


The timing was done on a scope (setting pin high/low before/after command).


I noticed that sock_stream.c, SOCK_STREAM_send calls RTCSCMD_issue which calls RTCS_msg_send_blocked in both the WAIT and NOWAIT state. There is an RTCS_msg_send command that isn't called. Not sure if this is why it's taking so long to return or is this normal?