mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
https: defines maxHeadersCount in the constructor
In Refs, http.Server's maxHeadersCount field was defined in the constructor to make hidden class stable and so on. Also in https.Server, we can use maxHeadersCount the same as http via connectionListener. So, defines it in the constructor and documentation. Refs: https://github.com/nodejs/node/pull/9116 PR-URL: https://github.com/nodejs/node/pull/20359 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
This commit is contained in:
1 parent
79e1260cd8
commit
0b16c2482d
3 files changed
+82
No files matched your search
@@ -74,6 +74,7 @@ function Server(opts, requestListener) {
|
||||
|
||||
this.timeout = 2 * 60 * 1000;
|
||||
this.keepAliveTimeout = 5000;
|
||||
this.maxHeadersCount = null;
|
||||
}
|
||||
inherits(Server, tls.Server);
|
||||
|
||||
|
||||
Reference in new issue
Block a user