added configurable default valud for netconn->recv_bufsize: RECV_BUFSIZE_DEFAULT (fixes bug #23726: pbuf pool exhaustion on slow recv())

This commit is contained in:
goldsimon
2009-02-11 19:07:22 +00:00
parent 243e3d0d91
commit 8c7705bbf9
3 changed files with 12 additions and 1 deletions

View File

@@ -532,7 +532,7 @@ netconn_alloc(enum netconn_type t, netconn_callback callback)
conn->recv_timeout = 0;
#endif /* LWIP_SO_RCVTIMEO */
#if LWIP_SO_RCVBUF
conn->recv_bufsize = INT_MAX;
conn->recv_bufsize = RECV_BUFSIZE_DEFAULT;
#endif /* LWIP_SO_RCVBUF */
return conn;
}