Chris Chelmecki

Interniche Stack -- tcp_send documentation error

Discussion created by Chris Chelmecki on Apr 18, 2007
Latest reply on May 8, 2007 by Bryan Kattwinkel
I think I have run into an inconsistency in the documentation.  It is noted that when using the tcp_send function, if an error is returned, the stack will not free the pkt and the application should do so.  However, it seems that the stack will free packets when an error is returned.  When a pkt is freed the second time, the cpu will spin in a infinite loop in QUEUE_CHECK.

Based on examination of the stacks lower levels and the m_send function, it looks like the application should only free the packet if the error is EWOULDBLOCK or ENOTCONN.

Has anyone else run into this issue?  Does my solution seem reasonable, or is there an ever nastier underlying bug?

Chris Chelmecki