CloudBlue knowledgebase (KB) http://www.fishighalat.com/ CloudBlue knowledgebase (KB) en Copyright 2018 CloudBlue Wed, 10 Sep 2008 00:00:00 +0600 Wed, 10 Sep 2008 00:00:00 +0600 <![CDATA[POST request fails: Connection terminated as request was larger than 10485760]]> http://www.fishighalat.com/en/133426 Symptoms

A POST request to create a resource in scope of an APS application fails with the error:

Connection terminated as request was larger than 10485760

Cause

The default limit for POST size is 10MB. In case an APS application attempts to send a data packet larger than 10Mb, the operation fails.

The request to increase the maximum POST size will be considered in scope of PFR-2340.

Resolution

  1. Open /usr/local/pem/wildfly-11.0.0.Final/standalone/configuration/standalone-full-ha.xml for editing (note: Wildfly version in the directory name may differ version to version) and find the section:

    <subsystem xmlns="urn:jboss:domain:undertow:4.0">
    ...
    <server name="aps-service-server" servlet-container="aps-servlet-container">
            <https-listener name="aps-service-https" socket-binding="aps-service" worker="aps-service" security-realm="SRealmAPSService" verify-client="REQUESTED"/>
            <host name="default-host" default-web-module="aps-service-root.war"/>
        </server>
    ...
    </subsystem>
    
  2. Add max-post-size="104857600" value to the definition of aps-service-server:

    <subsystem xmlns="urn:jboss:domain:undertow:4.0">
    ...
    <server name="aps-service-server" servlet-container="aps-servlet-container">
            <https-listener name="aps-service-https" socket-binding="aps-service" worker="aps-service" security-realm="SRealmAPSService" verify-client="REQUESTED" max-post-size="104857600"/>
            <host name="default-host" default-web-module="aps-service-root.war"/>
        </server>
    ...
    </subsystem>
    
  3. Restart OSS Core services.
]]>
46419 LastUpdated: 2018-11-19 10:22:33 19 Nov 2018 10:22:33 GMT
网赌被黑不给出款怎么办