You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2022/04/03 20:51:48 UTC

[GitHub] [incubator-nuttx] pkarashchenko opened a new issue, #5973: CONFIG_NET_TCP_WRITE_BUFFERS=y lead to deadlock

pkarashchenko opened a new issue, #5973:
URL: https://github.com/apache/incubator-nuttx/issues/5973

   Recently I've been testing FTPD operation on custom SAME70 based board with FileZilla FTP client. I had `CONFIG_NET_TCP_WRITE_BUFFERS=y`. I have a folder with 2 files that I try to upload from laptop to device. Upload of a folder fails. FileZilla starts 2 FTP sessions in parallel one for each file upload so 2 instances of `ftpd_worker` are started. The situation happens in 80% of my tests. The FTP client send `"STOR"` command for both files and by adding extra logs I see that both threads reach `ftpd.c:1908` code `ret = ftpd_response(session->cmd.sd, session->txtimeout, g_respfmt1, 150, ' ', "Opening data connection");` at the same time so `send` is called concurrently. The logs before `ftpd_response` call are printed, but there are no logs after `ftpd_response` call. NSH "ps" shows that both threads are "waiting for semaphore", but most probably loop somewhere inside the `psock_tcp_send` trying to allocate `iob`. Setting `CONFIG_NET_TCP_WRITE_BUFFERS=n` solves the issue and FTP s
 erver operates as expected.


-- 
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: commits-unsubscribe@nuttx.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [nuttx] anchao commented on issue #5973: CONFIG_NET_TCP_WRITE_BUFFERS=y lead to deadlock

Posted by "anchao (via GitHub)" <gi...@apache.org>.
anchao commented on issue #5973:
URL: https://github.com/apache/nuttx/issues/5973#issuecomment-1408116876

   Does this issue still exist on the latest nuttx? recently I fixed a similar issue, I don’t know if there is any improvement for ftpd
   
   https://github.com/apache/nuttx/pull/8130


-- 
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: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [nuttx] fjpanag commented on issue #5973: CONFIG_NET_TCP_WRITE_BUFFERS=y lead to deadlock

Posted by GitBox <gi...@apache.org>.
fjpanag commented on issue #5973:
URL: https://github.com/apache/nuttx/issues/5973#issuecomment-1328047885

   I am hitting the exact same issue with a custom server, on high load.
   
   TCP deadlocks during send when it tries to allocate an iob.


-- 
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: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org