mirror of
https://github.com/nghttp2/nghttp2.git
synced 2025-12-06 18:18:52 +08:00
@@ -34,7 +34,6 @@
|
||||
#endif // HAVE_SYS_TIME_H
|
||||
#include <poll.h>
|
||||
|
||||
#include <map>
|
||||
#include <chrono>
|
||||
|
||||
#include <nghttp2/nghttp2.h>
|
||||
|
||||
@@ -699,7 +699,6 @@ struct TLSConfig {
|
||||
// list of supported SSL/TLS protocol strings.
|
||||
std::vector<StringRef> tls_proto_list;
|
||||
std::vector<uint8_t> sct_data;
|
||||
BIO_METHOD *bio_method;
|
||||
// Bit mask to disable SSL/TLS protocol versions. This will be
|
||||
// passed to SSL_CTX_set_options().
|
||||
nghttp2_ssl_op_type tls_proto_mask;
|
||||
|
||||
@@ -383,7 +383,7 @@ void Worker::replace_downstream_config(
|
||||
std::unordered_map<StringRef, WeightGroup *> wgs;
|
||||
size_t num_wgs = 0;
|
||||
for (auto &addr : shared_addr->addrs) {
|
||||
if (wgs.find(addr.group) == std::ranges::end(wgs)) {
|
||||
if (!wgs.contains(addr.group)) {
|
||||
++num_wgs;
|
||||
wgs.emplace(addr.group, nullptr);
|
||||
}
|
||||
|
||||
@@ -228,7 +228,7 @@ StringRef format_iso8601(char *out,
|
||||
|
||||
auto sys_info = zt.get_info();
|
||||
auto gmtoff =
|
||||
std::chrono::duration_cast<std::chrono::minutes>(sys_info.offset).count();
|
||||
std::chrono::floor<std::chrono::minutes>(sys_info.offset).count();
|
||||
if (gmtoff == 0) {
|
||||
*p++ = 'Z';
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user