Error : An existing connection was forcibly closed by the remote host

Error : An existing connection was forcibly closed by the remote host

无法访问服务并出现以下错误:

An existing connection was forcibly closed by the remote host.

我正在使用一些数据访问 POST-OData 服务。当我在 1 分钟内输入数据时,服务成功并发布了数据。但是,当我在一分钟多后输入数据时,出现此错误。 SQL 服务器正在使用中。在这种情况下,服务不会受到影响。

$.ajax({
  url: "/Non_SAP_Instrumentation/odata/LoopDrawing",
  method: "POST",
  data: {
    "UnitNumber": unit_no,
    "TagName": tag_name,
    "SysTagName": sys_tag_name,
    "TagDesc": tag_description,
    "JbNo": jb_no,
    "JbPairNo": jb_pair_no,
    "JbTerminal": jb_terminal,
    "IoType": io_type,
    "Ctrl": controller,
    "Node": node,
    "Slot": slot,
    "Channel": channel,
    "Segment": segment,
    "Redundancy": redundancy,
    "MarCab": marsh_cab,
    "SurgeProtc": surge_protc,
    "Barrier": barrier,
    "Relay": relay,
    "FuseTbGrp": fuse_tb_group,
    "FuseTbTerm": fuse_tb_term,
    "Update": "No",
    "CreatedBy": that.name,
    "CreatedByID": that.EmpModel.getProperty("/").name,
    "ModifiedBy": that.name,
    "ModifiedByID": that.EmpModel.getProperty("/").name
  },
  dataType: "json",
  success: function(data) {
    var value = JSON.parse(data.value);
    sap.ui.core.BusyIndicator.hide();
    if (value.Status == "OK") {
      MessageBox.information("Loop Drawing has been created", {
        onClose: function() {
          that.router.navTo("TagMasterPage", {
            TAG: tag_name
          });
          that.makingFieldsBlank();
          that.window.location.reload();
        }
      });
    } else {
      sap.ui.core.BusyIndicator.hide();
      MessageBox.information("Unable to create Loop Drawing", {
        onClose: function() {
          that.router.navTo("SearchOrCreate");
          that.window.location.reload();
        }
      });
    }
  },
  error: function(err) {
    sap.ui.core.BusyIndicator.hide();
    console.log(err.responseText);
    MessageBox.information("Unable to create Loop Drawing", {
      onClose: function() {
        that.router.navTo("SearchOrCreate");
      }
    });
  }

这可以通过以下步骤实现: 1)进入IIS 2) 转到 Web 应用程序的高级设置 3) select 连接限制和设置连接超时。

但它降低了服务器的性能。因此连接超时限制应相应地设置为最小值。