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:
patacongo
2009-08-16 20:05:56 +00:00
parent 0810fcb7cb
commit 2205249a76
2 changed files with 39 additions and 38 deletions
+3 -3
View File
@@ -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;