Skip to content

Commit

Permalink
add idleTimeout
Browse files Browse the repository at this point in the history
  • Loading branch information
Fungx committed Dec 8, 2023
1 parent 7c34e8e commit a8dd5a3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,6 @@ public class SourceConnectorConfig {
private String path;

private int port;

private int idleTimeout;
}
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@ private void doInit() throws Exception {
});
});
this.server = vertx.createHttpServer(new HttpServerOptions()
.setPort(this.sourceConfig.connectorConfig.getPort())).requestHandler(router);
.setPort(this.sourceConfig.connectorConfig.getPort())
.setIdleTimeout(this.sourceConfig.connectorConfig.getIdleTimeout())
).requestHandler(router);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,5 @@ pubSubConfig:
connectorConfig:
connectorName: httpSource
path: /test
port: 3755
port: 3755
idleTimeout: 5

0 comments on commit a8dd5a3

Please sign in to comment.