mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-04 05:39:05 +00:00
uIP webserver: Missing logic to close sockets on loop termination. From Max.
This commit is contained in:
parent
336205d33c
commit
9efd3f8323
1 changed files with 6 additions and 1 deletions
|
|
@ -816,7 +816,7 @@ static void single_server(uint16_t portno, pthread_startroutine_t handler, int s
|
|||
if (acceptsd < 0)
|
||||
{
|
||||
ndbg("accept failure: %d\n", errno);
|
||||
break;;
|
||||
break;
|
||||
}
|
||||
|
||||
nvdbg("Connection accepted -- serving sd=%d\n", acceptsd);
|
||||
|
|
@ -851,6 +851,11 @@ static void single_server(uint16_t portno, pthread_startroutine_t handler, int s
|
|||
|
||||
(void)httpd_handler((void*)acceptsd);
|
||||
}
|
||||
|
||||
/* Close the sockets */
|
||||
|
||||
close(acceptsd);
|
||||
close(listensd);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue