From 47521ce2bc235aac2ed3859e2d2eb3f469fb2856 Mon Sep 17 00:00:00 2001 From: goldsimon Date: Mon, 27 Jul 2009 15:10:39 +0000 Subject: [PATCH] fixed bug #27117: httpserver_raw sample does not call tcp_accepted() --- apps/httpserver_raw/httpd.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/httpserver_raw/httpd.c b/apps/httpserver_raw/httpd.c index 387a908..0978e49 100644 --- a/apps/httpserver_raw/httpd.c +++ b/apps/httpserver_raw/httpd.c @@ -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; } /*-----------------------------------------------------------------------------------*/