mirror of
https://github.com/ep00ch/lwip-contrib-mac.git
synced 2024-11-18 22:05:51 +00:00
fixed bug #27117: httpserver_raw sample does not call tcp_accepted()
This commit is contained in:
parent
5cceed389c
commit
47521ce2bc
@ -212,6 +212,9 @@ http_accept(void *arg, struct tcp_pcb *pcb, err_t err)
|
||||
LWIP_UNUSED_ARG(arg);
|
||||
LWIP_UNUSED_ARG(err);
|
||||
|
||||
/* Decrease the listen backlog counter */
|
||||
tcp_accepted(pcb);
|
||||
|
||||
tcp_setprio(pcb, TCP_PRIO_MIN);
|
||||
|
||||
/* Allocate memory for the structure that holds the state of the
|
||||
@ -239,6 +242,7 @@ http_accept(void *arg, struct tcp_pcb *pcb, err_t err)
|
||||
tcp_err(pcb, conn_err);
|
||||
|
||||
tcp_poll(pcb, http_poll, 4);
|
||||
|
||||
return ERR_OK;
|
||||
}
|
||||
/*-----------------------------------------------------------------------------------*/
|
||||
|
Loading…
Reference in New Issue
Block a user