mirror of
https://github.com/apache/nuttx.git
synced 2026-10-06 13:55:15 +00:00
Fix UDP recvfrom timeout logic
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@417 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
4ca632d1e6
commit
c3669a3104
1 changed files with 4 additions and 0 deletions
|
|
@ -613,6 +613,10 @@ static void recvfrom_udpinterrupt(struct uip_driver_s *dev,
|
|||
/* Report a timeout error */
|
||||
|
||||
pstate->rf_result = -EAGAIN;
|
||||
|
||||
/* Wake up the waiting thread */
|
||||
|
||||
sem_post(&pstate->rf_sem);
|
||||
}
|
||||
#endif /* CONFIG_NET_SOCKOPTS && !CONFIG_DISABLE_CLOCK */
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue