---
title: "(LoadRunner)Error code 10053，Software caused connection abort"
author: "amosleaf"
date: "2010-03-26T16:14:11Z"
tags: []
categories: ["编程语言"]
slug: "loadrunner-error-code-10053-software-caused-connection-abort"
draft: false
lastmod: "2010-03-26T16:15:52Z"
id: 625590
url: "https://amosleaf.iteye.com/blog/625590"
---

**测试场景：** tomcat 做server, 使用LR 测试上传文件的性能。

LoadRunner总是报错：“Action.c(81): Error -27792: Failed to transmit data to network: **\[10053] Software caused connection abort”**

 

**解决方案:**

**(1)添加配置 maxKeepAliveRequests=”-1”**

**Description:** The maximum number of HTTP requests which can be pipelined until the connection is closed by the server. Setting this attribute to 1 will disable HTTP/1.0 keep-alive, as well as HTTP/1.1 keep-alive and pipelining. Setting this to -1 will allow an unlimited amount of pipelined or keep-alive HTTP requests. If not specified, this attribute is set to 100.

 

**(2)适当加大 connectionTimeout="60000"**

**Description:** The number of milliseconds this **Connector** will wait, after accepting a connection, for the request URI line to be presented. The default value is 60000 (i.e. 60 seconds).

 

 

这个方案的思路来自一篇网络文章: [http://www.51testing.com/?60038/action\_viewspace\_itemid\_3786.html](http://www.51testing.com/?60038%2Faction_viewspace_itemid_3786.html)

关于tomcat的HttpConnector配置请参见官方文档: [http://tomcat.apache.org/tomcat-5.5-doc/config/http.html](http://tomcat.apache.org/tomcat-5.5-doc/config/http.html)