408 Error Timeout while uploading big file

cancel
Showing results for 
Search instead for 
Did you mean: 
lcarangelo
Member II

408 Error Timeout while uploading big file

Alfresco Community Version Number: 5.1.0 (r122274-b3)

We receive an 408 Error timeout while uploading big file, where and how can I modify timeout limiti or how can we avoid this behaviour?

Thank you

Luca

5 Replies
dharmendra_pan2
Active Member II

Re: 408 Error Timeout while uploading big file

You can override  the "connector.remoteclient.abstract" bean in shared/classes/alfresco/web-extension/custom-slingshot-application-context.xml file, Increase the readTimeout value based on your requirement..

You should also check your SSO system setting and its poxy if you are using..

<bean id="connector.remoteclient.abstract" abstract="true">
<!-- name of authentication ticket that can be optionally applied to proxied URLs -->
<!-- the ticket value is set programmatically by the connector making use of the RemoteClient instance -->
<property name="ticketName"><value>alf_ticket</value></property>
<!-- default encoding to use when decoded responses when none is set in the response - set to null for platform default -->
<property name="defaultEncoding"><null/></property>
<!-- default Content-Type header value to use for PUT or POST responses when none is supplied -->
<property name="defaultContentType"><value>application/octet-stream</value></property>
<!-- size of the internal byte buffer used when proxying responses -->
<property name="bufferSize"><value>4096</value></property>
<!-- the http.connection.timeout value in milliseconds to apply to HTTP connections -->
<property name="connectTimeout"><value>2000000</value></property>
<!-- the http.socket.timeout value in milliseconds to apply to HTTP connections -->
<property name="readTimeout"><value>2200000</value></property>
<!-- the maximum number of redirects to process from a GET request while maintaining cookies -->
<property name="maxRedirects"><value>10</value></property>
<!-- the RemoteClient will automatically use an HTTP proxy if the JVM property 'http.proxyHost' is set
but this feature can be disabled by setting this bean property to false -->
<property name="allowHttpProxy"><value>true</value></property>
<!-- the RemoteClient will automatically use an HTTPS proxy if the JVM property 'https.proxyHost' is set
but this feature can be disabled by setting this bean property to false -->
<property name="allowHttpsProxy"><value>true</value></property>
<!-- the set of headers to remove when proxying a request from a client to a remote endpoint -->
<property name="removeRequestHeaders">
<set>
<value>Cookie</value>
</set>
</property>
<!-- the set of headers to remove when proxying a response from a remote endpoint to a client -->
<property name="removeResponseHeaders">
<set>
<value>Set-Cookie</value>
</set>
</property>
<!-- http.tcp.nodelay setting - default is true -->
<property name="httpTcpNodelay"><value>true</value></property>
<!-- http.connection.stalecheck setting - default is true -->
<property name="httpConnectionStalecheck"><value>true</value></property>
</bean>

-D

jpotts
Professional

Re: 408 Error Timeout while uploading big file

Just curious, how big is the file?

lcarangelo
Member II

Re: 408 Error Timeout while uploading big file

> 5G

lcarangelo
Member II

Re: 408 Error Timeout while uploading big file

custom-slingshot-application-context.xml is missing , do I have to create it and insert the suggested code?

Do I have to customize something else in it? 

dharmendra_pan2
Active Member II

Re: 408 Error Timeout while uploading big file

Yes, If it is missing then you have to create one in web-extension folder and add connector.remoteclient.abstract bean

shared/classes/alfresco/web-extension/custom-slingshot-application-context.xml

You just need to update the below values in connector.remoteclient.abstract bean, here I have already incresed so try it.

<property name="connectTimeout"><value>2000000</value></property>
<!-- the http.socket.timeout value in milliseconds to apply to HTTP connections -->
<property name="readTimeout"><value>2200000</value></property>

Note : Do not increase it to bigger values otherwise it will decrease application performance, Also check the proxy setting as I said earlier.

-D