Skip to content

Commit f33381d

Browse files
revert this: increase timeouts at rails and node js sides
1 parent de5b78b commit f33381d

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

react_on_rails_pro/lib/react_on_rails_pro/request.rb

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,8 +257,12 @@ def create_connection
257257
# :operation_timeout
258258
# :keep_alive_timeout
259259
timeout: {
260-
connect_timeout: ReactOnRailsPro.configuration.renderer_http_pool_timeout,
261-
read_timeout: ReactOnRailsPro.configuration.ssr_timeout
260+
connect_timeout: 100,
261+
read_timeout: 100,
262+
write_timeout: 100,
263+
request_timeout: 100,
264+
operation_timeout: 100,
265+
keep_alive_timeout: 100,
262266
}
263267
)
264268
rescue StandardError => e

react_on_rails_pro/packages/node-renderer/src/worker.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,11 @@ export default function run(config: Partial<Config>) {
125125
logger:
126126
logHttpLevel !== 'silent' ? { name: 'RORP HTTP', level: logHttpLevel, ...sharedLoggerOptions } : false,
127127
...fastifyServerOptions,
128+
pluginTimeout: 1_000_1000,
129+
requestTimeout: 1_000_1000,
130+
keepAliveTimeout: 1_000_1000,
131+
connectionTimeout: 1_000_1000,
132+
http2SessionTimeout: 1_000_1000,
128133
});
129134

130135
// We shouldn't have unhandled errors here, but just in case

0 commit comments

Comments
 (0)