lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] [patch #6504] httpserver_raw's struct http_state's left fie


From: sam
Subject: [lwip-devel] [patch #6504] httpserver_raw's struct http_state's left field should be an int
Date: Sat, 03 May 2008 11:26:50 +0000
User-agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)

URL:
  <http://savannah.nongnu.org/patch/?6504>

                 Summary: httpserver_raw's struct http_state's left field
should be an int
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: lwipsam
            Submitted on: Saturday 05/03/2008 at 11:26
                Category: None
                Priority: 4
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None

    _______________________________________________________

Details:

In contrib-1.3.0\contrib\apps\httpserver_raw, httpd.c has:

struct http_state {
  char *file;
  u16_t left; // <--- should be an int
  u8_t retries;
};

The field "left" has type u16_t.  Its value is assigned from file.len, which
is an int.  This causes problems for large files.

[I caught this because I hacked it so that my file data comes from a real
file, so I can use a web browser as a quick-and-dirty test of throughput.  I
used a file of roughly 1.5MB.]




    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?6504>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]