This pull request includes changes to enhance the network configuration options and improve code efficiency. The main updates include adding new properties to the DoHProps and DNSOverTCPProps interfaces, updating constructors to handle these new properties, and removing the use of lodash's cloneDeep method.
Additionally, this PR introduces major improvements in TCP and TLS performance by no longer closing the connection at the end of each TCP request.
Enhancements to network configuration:
src/common/network/http.ts: Added maxConnections property to DoHProps interface and updated the DNSOverHTTP class to use this property. [1][2]
src/common/network/tcp.ts: Added maxConnections, keepAlive, and timeout properties to DNSOverTCPProps interface and updated the DNSOverTCP class to use these properties. [1][2]
Code efficiency improvements:
src/types/server.ts: Removed lodash/cloneDeep import and replaced its usage with native object spreading for deep copying. [1][2][3]
This pull request includes changes to enhance the network configuration options and improve code efficiency. The main updates include adding new properties to the
DoHProps
andDNSOverTCPProps
interfaces, updating constructors to handle these new properties, and removing the use oflodash
'scloneDeep
method.Additionally, this PR introduces major improvements in TCP and TLS performance by no longer closing the connection at the end of each TCP request.
Enhancements to network configuration:
src/common/network/http.ts
: AddedmaxConnections
property toDoHProps
interface and updated theDNSOverHTTP
class to use this property. [1] [2]src/common/network/tcp.ts
: AddedmaxConnections
,keepAlive
, andtimeout
properties toDNSOverTCPProps
interface and updated theDNSOverTCP
class to use these properties. [1] [2]Code efficiency improvements:
src/types/server.ts
: Removedlodash/cloneDeep
import and replaced its usage with native object spreading for deep copying. [1] [2] [3]