Distributions
› Ubuntu
› Fedora
› CentOS
中文资源站
› 网易开源镜像站
tsuibin
V2EX  ›  Linux

写了一个 基于epoll的一个mini web server,遇到一些问题

  •  
  •   tsuibin ·
    tsuibin · Mar 16, 2012 · 5185 views
    This topic created in 5359 days ago, the information mentioned may be changed or developed.
    我用一个292k的文件测试,用浏览器访问的时候,显示不完整,只显示了页面的一部分,不知道问题出在哪
    http://www.cazool.org/bbs/read.php?tid-44484.html
    5 replies  •  1970-01-01 08:00:00 +08:00
    summic
    summic
    Mar 16, 2012 via iPhone
    1
    content-length 值输出的正确么?
    tsuibin
    tsuibin
    OP
    Mar 16, 2012
    2
    不正确,测试了几次 输出的内容 大小 75.25KB 左右
    很奇怪,我在读取和发送文件数据的时候并没有中断读和写。。
    tsuibin
    tsuibin
    OP
    Mar 16, 2012
    3
    clowwindy
    clowwindy
    Mar 26, 2012
    4
    tsuibin
    tsuibin
    OP
    Mar 30, 2012
    5
    @clowwindy 谢谢,你知道如何在让自己的websvr支持cgi技术吗?
    我现在有一个思路是 用php命令执行 .php文件,将结果返回给浏览器,但是我看到的执行结果没有样式, 你有尝试过支持cgi吗?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2389 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 12:35 · PVG 20:35 · LAX 04:35 · JFK 07:35
    ♥ Do have faith in what you're doing.