Skip to content

Commit 7a24523

Browse files
committed
Fixes socket timeouts equal to server
1 parent 18040d0 commit 7a24523

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ RUN npm install --production
1919
ENV SERVER_PORT 3000
2020
ENV PAYLOAD_MAX_SIZE 1048576
2121
ENV TIMEOUT_SERVER 120000
22-
ENV TIMEOUT_SOCKET 120000
22+
ENV TIMEOUT_SOCKET 140000
2323

2424
# Expose 3000
2525
EXPOSE 3000

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ PAYLOAD_MAX_SIZE default is 1048576 (1 MB)
5151

5252
TIMEOUT_SERVER default is 2 minutes (120 000 milliseconds)
5353

54-
TIMEOUT_SOCKET default is 2 minutes (120 000 milliseconds)
54+
TIMEOUT_SOCKET default is 2 minutes and 20 seconds (140 000 milliseconds)
5555

5656
Change it in the Dockerfile or create an env-file and load it at containerstart
5757

config/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ module.exports = {
44
SERVER_PORT: process.env.SERVER_PORT || 3000,
55
PAYLOAD_MAX_SIZE: process.env.PAYLOAD_MAX_SIZE || 1048576,
66
TIMEOUT_SERVER: process.env.TIMEOUT_SERVER || 60000 * 2,
7-
TIMEOUT_SOCKET: process.env.TIMEOUT_SOCKET || 60000 * 2
7+
TIMEOUT_SOCKET: process.env.TIMEOUT_SOCKET || 70000 * 2
88
}

docker.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
SERVER_PORT=3000
22
PAYLOAD_MAX_SIZE=1048576
33
TIMEOUT_SERVER=120000
4-
TIMEOUT_SOCKET=120000
4+
TIMEOUT_SOCKET=140000

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tfk-api-unoconv",
3-
"version": "3.1.0",
3+
"version": "3.1.1",
44
"private": true,
55
"description": "Unoconv as a webservice",
66
"author": {

0 commit comments

Comments
 (0)