
1 summic 2012-03-16 15:51:54 +08:00 via iPhone content-length 值输出的正确么? |
2 tsuibin OP 不正确,测试了几次 输出的内容 大小 75.25KB 左右 很奇怪,我在读取和发送文件数据的时候并没有中断读和写。。 |
3 tsuibin OP |
4 clowwindy 2012-03-26 21:37:22 +08:00 要检查 fwrite 的返回值…… 我以前也写过一个 nonblocking 的web server,欢迎交流 :) http://www.cnblogs.com/clowwindy/archive/2011/09/23/a_http_server_faster_than_nginx.html https://github.com/clowwindy/clowwindy_server/blob/master/web_server.cc |