xiaoxiang781216 commented on a change in pull request #5526:
URL: https://github.com/apache/incubator-nuttx/pull/5526#discussion_r809700327
##########
File path: net/tcp/tcp_send_buffered.c
##########
@@ -1210,11 +1247,11 @@ ssize_t psock_tcp_send(FAR struct socket *psock, FAR
const void *buf,
{
wrb = tcp_wrbuffer_tryalloc();
ninfo("new wrb %p (non blocking)\n", wrb);
- DEBUGASSERT(wrb == NULL || TCP_WBPKTLEN(wrb) == 0);
}
else
{
- wrb = tcp_wrbuffer_alloc();
+ wrb = tcp_wrbuffer_timedalloc(tcp_send_gettimeout(start,
+ timeout));
ninfo("new wrb %p\n", wrb);
DEBUGASSERT(TCP_WBPKTLEN(wrb) == 0);
Review comment:
should we remove DEBUGASSERT?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]