-
Notifications
You must be signed in to change notification settings - Fork 69
Description
Describe the bug
This issue is acout time configuration to control connection by iddle time. The point is that the task to clean old idle connections is much bigger that the idle time itself. It should be in oposite.
api-layer/apiml-common/src/main/java/org/zowe/apiml/product/web/HttpConfig.java
Lines 104 to 105 in 3eafe3f
| @Value("${apiml.connection.idleConnectionTimeoutSeconds:#{5}}") | |
| private int idleConnTimeoutSeconds; |
api-layer/apiml-common/src/main/java/org/zowe/apiml/product/web/HttpConfig.java
Lines 204 to 210 in 3eafe3f
| this.connectionManagerTimer.schedule(new TimerTask() { | |
| @Override | |
| public void run() { | |
| connectionManager.closeExpired(); | |
| connectionManager.closeIdle(Timeout.ofSeconds(idleConnTimeoutSeconds)); | |
| } | |
| }, 30000, 30000); |
It means that connection that should be waiting for 5 second is closed in 30 seconds. That basically means that real idle time is between 5 and 30 seconds (in theory up to 35secs)
Expected behavior
I would suggest to set idle time to 30 seconds and run the schedulled task every 10 seconds.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status