You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "tmedicci (via GitHub)" <gi...@apache.org> on 2023/05/11 01:00:01 UTC
[GitHub] [nuttx] tmedicci opened a new pull request, #9244: net/local: fix blocking local sockets
tmedicci opened a new pull request, #9244:
URL: https://github.com/apache/nuttx/pull/9244
## Summary
As pointed out by https://github.com/apache/nuttx/issues/9241, PR https://github.com/apache/nuttx/pull/8985 made pipes and named pipes block when opening for `O_WRONLY` or `O_RDONLY`. Local sockets, however, require `local_open_client_tx` to be non-blocking to enable the server side to prevent the server side from blocking. If set otherwise, it would deadly block. This commit sets the FIFO as non-blocking temporarily, open the TX side and, if originally blocking - restores it to that state.
## Impact
Fixes https://github.com/apache/nuttx/issues/9241 and allow using local sockets.
## Testing
`sim:citest` (`pipe`) + `sim:ustream` + `sim:dgram`
--
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] xiaoxiang781216 merged pull request #9244: net/local: fix blocking local sockets
Posted by "xiaoxiang781216 (via GitHub)" <gi...@apache.org>.
xiaoxiang781216 merged PR #9244:
URL: https://github.com/apache/nuttx/pull/9244
--
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