mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 15:58:59 +08:00
Reduce stack usage
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2028 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -524,14 +524,14 @@ errout_clear_connection:
|
||||
|
||||
static void handle_linger(struct connect_s *conn, struct timeval *tv)
|
||||
{
|
||||
char buf[4096];
|
||||
httpd_conn *hc = conn->hc;
|
||||
int ret;
|
||||
|
||||
/* In lingering-close mode we just read and ignore bytes. An error or EOF
|
||||
/* In lingering-close mode we just read and ignore bytes. An error or EOF
|
||||
* ends things, otherwise we go until a timeout
|
||||
*/
|
||||
|
||||
ret = read(conn->hc->conn_fd, buf, sizeof(buf));
|
||||
ret = read(conn->hc->conn_fd, hc->buffer, CONFIG_THTTPD_IOBUFFERSIZE);
|
||||
if (ret < 0 && (errno == EINTR || errno == EAGAIN))
|
||||
{
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user