Hi bill: The httpd_raw demo you mentioned is httpserver_raw application in lwIP-contrib, right ? In fact, more web server is programmed by socket, not row api ..
Vincent Cui Firmware Engineer Leader Mobile: +8613482482211 Tel: +86 21 34612525x6104 Fax: +86 21 34619770 E-Mail: [email protected] Shanghai EnLogic Electric Technology Co., Ltd. Address: 1104-1106, Building A, No.391, Guiping Road, Xuhui District, Shanghai, 200233 -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Bill Auerbach Sent: 2012年5月2日 20:44 To: 'Mailing list for lwIP users' Subject: Re: [lwip-users] How to send a large dynamic generated http page? >I've the same problem to solve. In my case they are log files with up to >64KB. With the standard LwIP http server example it's not possible to >send files with a size above the allowed buffer size. In most cases >hs->left points just to the address in this buffer. So I think the best >way is to create a other function which allows the "streaming" of the >data (filling the buffer and sending and not to close the connection, >even complete data was send). It can be done because I've sent up to 800k files using the original (non-SSI) httpd and note that I was basing this on the httpd_raw (sp?) demo. Regardless of the file size the tcp_sent callback is used to continue to send until the file end is reached. I would expect 10k, 100k or 1MB to be identical in the handling. Bill _______________________________________________ lwip-users mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/lwip-users _______________________________________________ lwip-users mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/lwip-users
