pussuw opened a new issue, #9241:
URL: https://github.com/apache/nuttx/issues/9241

   It seems like there is a regression with sockets after PR #8985  . At least 
local sockets are affected, did not test others.
   
   Connecting to local socket blocks forever into pipecommon_open : ret = 
nxsem_wait(&dev->d_wrsem);
   
   It happens via call to local_tx_open, which opens the local write-only FIFO.
   ```
   static int local_tx_open(FAR struct local_conn_s *conn, FAR const char *path,
                            bool nonblock)
   {
     int oflags = nonblock ? O_WRONLY | O_NONBLOCK : O_WRONLY;
     int ret;
   
     ret = file_open(&conn->lc_outfile, path, oflags);
   ```
   
   If I force nonblock to true, everything works as before. I'm not sure how to 
fix this properly so this is why I brought this up. I think there is straight 
up a logic error there, I don't think allocating socket FIFOs should block, 
ever.
   
   If someone tells me how it SHOULD work I'll happily fix it.


-- 
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]

Reply via email to