- include opt.h as first file (as done in all other C files);

- explain tcp_setprio instead of that nonsense comment :-)
This commit is contained in:
Simon Goldschmidt 2011-11-29 21:48:32 +01:00
parent 16e98196e0
commit 2d6a677a08
1 changed files with 4 additions and 1 deletions

View File

@ -41,6 +41,7 @@
*/
#include "lwip/opt.h"
#include "lwip/debug.h"
#include "lwip/stats.h"
#include "lwip/tcp.h"
@ -109,7 +110,9 @@ echo_accept(void *arg, struct tcp_pcb *newpcb, err_t err)
LWIP_UNUSED_ARG(arg);
LWIP_UNUSED_ARG(err);
/* commonly observed practive to call tcp_setprio(), why? */
/* Unless this pcb should have NORMAL priority, set its priority now.
When running out of pcbs, low priority pcbs can be aborted to create
new pcbs of higher priority. */
tcp_setprio(newpcb, TCP_PRIO_MIN);
es = (struct echo_state *)mem_malloc(sizeof(struct echo_state));