免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2810 | 回复: 1
打印 上一主题 下一主题

[Web] lighttpd1.4.19奇怪报错? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-12-16 18:08 |只看该作者 |倒序浏览
10可用积分
偶尔会在err——log里出现
2008-12-16 17:55:02: (network_linux_sendfile.c.143) open failed:  No such file or directory
2008-12-16 17:55:02: (connections.c.685) connection closed: write failed on fd 620
前台偶尔会出现500错误。


最初以为是openfile的问题。调整到了也没用。

Lig配置文件中server.max-fds = 16384参数也不小啊

真的不知道怎么回事了另外我的lig打了mod_cache补丁。

有哪位朋友指点一下么

network_linux_sendfile.c.143  处

140                         /* open file if not already opened */
141                         if (-1 == c->file.fd) {
142                                 if (-1 == (c->file.fd = open(c->file.name->ptr, O_RDONLY))) {
143                                         log_error_write(srv, __FILE__, __LINE__, "ss", "open failed: ", strerror(errno));
144
145                                         return -1;
146                                 }


connections.c.685  处
673         /* write chunks from output_queue to network */
    674         switch(network_write_chunkqueue(srv, con, con->output_queue)) {
    675         case 0:
    676                 if (finished) {
    677                         connection_set_state(srv, con, CON_STATE_RESPONSE_END);
    678                         joblist_append(srv, con);
    679                 } else {
    680                         /* not finished yet -> WRITE */
    681                         con->is_writable = 1;
    682                 }
    683                 break;
    684         case -1: /* error on our side */
    685                 log_error_write(srv, __FILE__, __LINE__, "sd",
    686                                 "connection closed: write failed on fd", con->fd);
    687                 connection_set_state(srv, con, CON_STATE_ERROR);
    688                 joblist_append(srv, con);
    689                 break;
    690         case -2: /* remote close */
    691                 connection_set_state(srv, con, CON_STATE_ERROR);
    692                 joblist_append(srv, con);
    693                 break;
    694         case 1:
    695                 con->is_writable = 0;
    696
    697                 /* not finished yet -> WRITE */
    698                 break;
    699         }
    700
    701         return 0;
    702 }

论坛徽章:
0
2 [报告]
发表于 2008-12-18 10:06 |只看该作者
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP