Commit Graph

204 Commits

Author SHA1 Message Date
goldsimon
6d4e09ea3c bug #35874 reserved identifier violation, 2nd part in even more files 2014-05-20 12:30:59 +02:00
goldsimon
e4ec9053e9 bug #35874 reserved identifier violation, 2nd part 2014-05-20 12:28:00 +02:00
Simon Goldschmidt
b833b173cc Fixed bug #35874 reserved identifier violation (removed leading underscores from header include guards) 2014-05-19 21:58:36 +02:00
Simon Goldschmidt
1e04deb667 makefsdata.c: minimal check if given path is OK 2014-05-15 20:50:22 +02:00
goldsimon
dc27bc8c07 makefsdata: don't use FindFirstFile to see if a directory exist but CHDIR() to it directly 2014-05-06 09:30:08 +02:00
Simon Goldschmidt
9f6dc6ad94 makefsdata: tried to fix another warning from static code analysis 2014-04-30 22:15:59 +02:00
goldsimon
8806c1e50e fixed compiler warnings 2014-04-30 14:01:49 +02:00
goldsimon
0007b4e6ba Multiple fixes found by coverity scan 2014-04-30 12:25:40 +02:00
Simon Goldschmidt
bc4a7f92ad httpd: fix that http_write() returns 1 in "length" when not sending because of sndbuf/sndqueuelen 2014-03-11 20:44:06 +01:00
Simon Goldschmidt
16167a22ef Fixed bug #31948 httpd: Improving HTTP Server performance when SSI is enabled 2014-03-11 20:34:37 +01:00
Simon Goldschmidt
856e9ecb8c Fixed compiler warnings (unused variables) 2014-02-26 22:00:03 +01:00
Simon Goldschmidt
c2539dbc8c Fixed bug #39380 Cannot build smtp example when debug is disabled 2014-02-22 20:10:42 +01:00
Simon Goldschmidt
21e076cb56 patch #8097 httpd: Return failure if parsing Content-Length fails 2014-02-20 21:19:27 +01:00
Fatih Asici
b7b6373ca5 httpd: Ignore remaining POST content in case of application error 2014-01-17 22:07:42 +01:00
Simon Goldschmidt
346d2f8c8a ping app: restore original packet if packet is not eaten 2013-01-11 22:00:24 +01:00
Simon Goldschmidt
f9147eb997 bug #37151 HTTP header corrupted in http_post_request 2012-08-22 22:21:35 +02:00
Simon Goldschmidt
7c9f0dce5a Fixed bug #36905 SNTP problem with SNTP_STARTUP_DELAY symbol (by adding a new optional macro SNTP_STARTUP_DELAY_FUNC) 2012-08-13 21:43:43 +02:00
Simon Goldschmidt
ec429c725a Fixed bug #36374 makefsdata.exe can't handle files with non-C characters (allow only 'A-Z', 'a-z', '0-9' and '_' for C variable names) 2012-05-02 22:19:30 +02:00
Simon Goldschmidt
6f002beae5 httpd: don't shadow globals ('abort' is declared under linux) 2012-02-23 19:01:05 +01:00
goldsimon
ae3ba92f3f httpd: updated example index.html to provide links to our savannah page and wiki instead of adam's (not updated) site only 2012-02-23 19:00:48 +01:00
Simon Goldschmidt
1cd61ba1ae sntp: added function sntp_stop() to stop the module, removed the (incomplete) socket part. 2012-02-22 21:10:45 +01:00
Simon Goldschmidt
3af14514dd httpd: use better default values: support HTTP request in up to 5 pbufs by default 2012-02-22 20:56:45 +01:00
Simon Goldschmidt
59c83ef10e httpd: ensure tcp_write() isn't called with len==0 2012-02-22 20:55:27 +01:00
goldsimon
8eb51799aa httpd:
- include 'struct fs_file' in 'struct http_state' to prevent file allocation fails when connection allocation succeeded (plus have less allocations/pools);
- added (conditional) code to abort the oldest connection when allocating a new connection fails;
- fixed some warnings;
2012-02-16 15:39:15 +01:00
Simon Goldschmidt
49fcad8f65 Fixed warning about unused http_continue() 2012-02-14 21:25:06 +01:00
Simon Goldschmidt
2a2617bc19 Use C-style comments, not C++ style 2012-02-13 20:46:40 +01:00
Simon Goldschmidt
00b2bb461a udpecho: no need netconn_connect, since the netbuf contains the address (bug #34921) 2012-01-20 21:57:26 +01:00
goldsimon
5ab0be592b Prevent multiple calls to httpd_post_finished, since it might have already been called before from httpd_post_data_recved(). 2012-01-12 15:45:27 +01:00
Simon Goldschmidt
2d6a677a08 - include opt.h as first file (as done in all other C files);
- explain tcp_setprio instead of that nonsense comment :-)
2011-11-29 21:48:32 +01:00
Simon Goldschmidt
16e98196e0 Fixed type in define: CUSTUM -> CUSTOM 2011-11-28 22:22:17 +01:00
Simon Goldschmidt
7546907c7b makefsdata:
- fixed typo (struct ffblk, not fflbk);
- changed include path to be relative to lwip's 'include' dir
2011-11-25 17:59:09 +01:00
goldsimon
a412496558 SMTP: disable compilation when LWIP_TCP is disabled 2011-10-21 13:28:01 +02:00
Simon Goldschmidt
288914b5c0 ping: fixed input pbuf processing when using raw API (check p->tot_len before calling pbuf_header) 2011-09-22 21:12:06 +02:00
Simon Goldschmidt
d1bf1ee0da httpd + makefsdata:
- added delayed open/read functionality (so that SSI code can delay sending of a file until internal data is available);
- clean up fs-handling: additional read is not required with our current fs implementation;
- kill oldest connection when running out of http_state memory;
- splitted SSI state into its own struct so that non-SSI pages don't consume too much memory (SSI buffer can get quit big);
- added support for HTTP/1.1 persistent connections (use the '-11' switch of makefsdata; not available for SSI files since we cannot calculate the file length in advance);
- splitted the unreadably-long function http_send_data into multiple smaller functions;
2011-09-04 19:26:46 +02:00
Simon Goldschmidt
7413328273 Fix that connections are closed with RST if the HTTP requests didn't fit into the first packet (RST would be sent because not all data has been recved by the httpd - now we ensure all data has been read by waiting for the first double-CRLF before parsing the request) 2011-09-02 22:02:45 +02:00
Simon Goldschmidt
82031caa3c Fixed bug #34170 Memory leak in sntp_send_request() (pbuf used for request was sent to udp but never freed) 2011-09-01 21:08:11 +02:00
Simon Goldschmidt
9a6e57fdbe Added my smtp client using the lwIP raw API 2011-08-24 23:27:16 +02:00
goldsimon
32b341c04a Fix compiler warnings in debug macros 2011-07-06 08:37:01 +00:00
goldsimon
cf57b51527 Adapted include path to inet_chksum.c 2011-07-06 07:15:13 +00:00
goldsimon
b73187713f httpd: move some variables from rwdata- to rodata- or bss-section 2011-03-27 13:07:48 +00:00
goldsimon
1c84fa5e5d Added unsigned modifier 'U' to defined constants 2011-02-18 13:24:21 +00:00
kieranm
c67a905dd9 Fix compile error in httpd.c 2011-02-03 12:44:15 +00:00
goldsimon
61cd545508 Improved debug output on sending data 2010-11-20 17:29:35 +00:00
goldsimon
dc0cd64e63 Fix compilation warnings (due to undefined defines) 2010-09-30 10:41:09 +00:00
goldsimon
a679e2aec6 - strip '?' from all uris before passing them to fs_open;
- http_close_conn must handle hs==NULL correctly (when called from http_poll);
- added LWIP_HTTPD_ABORT_ON_CLOSE_MEM_ERROR to call tcp_abort when tcp_close fails with out-of-memory error;
- httpd_init checks if the memp pool MEMP_HTTPD_STATE is big enough if HTTPD_USE_MEM_POOL==1
2010-07-19 14:26:36 +00:00
goldsimon
c0b51ff573 Fixed HTTP header for 400 (Bad Request) and 501 (Not Implemented) 2010-07-07 08:17:12 +00:00
goldsimon
5afec09b38 Fixed compilation for LWIP_HTTPD_POST_MANUAL_WND==0 2010-07-06 20:24:36 +00:00
goldsimon
19de161358 - added LWIP_HTTPD_SSI_INCLUDE_TAG (default on): when off, don't include the SSI tag in the output sent to clients (so SSI tags can be used anywhere, even in input boxes);
- fixed copy/nocopy for SSI files;
- added LWIP_HTTPD_SSI_MULTIPART (default off): when on, SSI functions have one more argument that is used as state for an SSI tag to return more than LWIP_HTTPD_MAX_TAG_INSERT_LEN bytes (the handler function is then called multiple times);
- added LWIP_HTTPD_POST_MANUAL_WND (default off): when on, post callbacks can throttle RX speed by manually sending window updates (i.e. tcp_recved is called manually by calling httpd_post_data_recved);
- added LWIP_HTTPD_FILE_STATE (default off): when on, fs_open/fs_close call application defined functions fs_state_init/fs_state_free (fs_state_init returns a void pointer that is passed to every call to an SSI handler);
- compacted the code a bit by moving the code that calls tcp_write() in a loop to its own function;
- error files may have the extension shtml, too;
- fixed that returning default 404 page did not work any more;
2010-07-05 14:32:24 +00:00
goldsimon
4adc78384b Minor: added newlines in console output 2010-07-05 14:21:50 +00:00
kieranm
0d1f02f931 Don't use local variable index as it clashes with global string.h define 2010-06-28 13:46:17 +00:00