最新消息:

解决 ab apr_socket_recv: Connection timed out 错误

未分类 admin 8352浏览 0评论

解决 ab apr_socket_recv: Connection timed out 错误

在使用ab 压力测试的时候 经常出错

按如下修改 Apache 源码目录下 support/ab.c 文件

1359         else if (status != APR_SUCCESS) {
1360             err_recv++;
1361             if (recverrok) {
1362                 bad++;
1363                 close_connection(c);
1364                 if (verbosity >= 1) {
1365                     char buf[120];
1366                     fprintf(stderr,"%s: %s (%d)n", "apr_socket_recv", apr_strerror(status, buf, sizeof buf), status);
1367                 }
1368                 return;
1369             } else {
1370                 bad++;                                 //添加
1371                 close_connection(c);                   //添加
1372                 //apr_err("apr_socket_recv", status);  //注释
1373             }
1374         }

转载请注明:爱开源 » 解决 ab apr_socket_recv: Connection timed out 错误

您必须 登录 才能发表评论!