parseLocalBindVars(vars, reusePort, tcpFastOpenQueueSize, interface, cpus, tcpListenQueueSize, maxInFlightQueriesPerConn, tcpMaxConcurrentConnections);
getOptionalValue<int>(vars, "internalPipeBufferSize", frontend->d_internalPipeBufferSize);
+ getOptionalValue<int>(vars, "idleTimeout", frontend->d_idleTimeout);
parseTLSConfig(frontend->d_tlsConfig, "addDOQLocal", vars);
* ``reusePort=false``: bool - Set the ``SO_REUSEPORT`` socket option.
* ``interface=""``: str - Set the network interface to use.
* ``cpus={}``: table - Set the CPU affinity for this listener thread, asking the scheduler to run it on a single CPU id, or a set of CPU ids. This parameter is only available if the OS provides the pthread_setaffinity_np() function.
- * ``idleTimeout=30``: int - Set the idle timeout, in seconds.
+ * ``idleTimeout=5``: int - Set the idle timeout, in seconds.
* ``internalPipeBufferSize=0``: int - Set the size in bytes of the internal buffer of the pipes used internally to pass queries and responses between threads. Requires support for ``F_SETPIPE_SZ`` which is present in Linux since 2.6.35. The actual size might be rounded up to a multiple of a page size. 0 means that the OS default size is used. The default value is 0, except on Linux where it is 1048576 since 1.6.0.
.. function:: addTLSLocal(address, certFile(s), keyFile(s) [, options])
}
}
- quiche_config_set_max_idle_timeout(config.get(), 5000);
+ quiche_config_set_max_idle_timeout(config.get(), d_idleTimeout * 1000);
quiche_config_set_max_recv_udp_payload_size(config.get(), MAX_DATAGRAM_SIZE);
quiche_config_set_max_send_udp_payload_size(config.get(), MAX_DATAGRAM_SIZE);
quiche_config_set_initial_max_data(config.get(), 10000000);
#else
uint32_t d_internalPipeBufferSize{0};
#endif
+ uint64_t d_idleTimeout{5};
};
struct DOQUnit