Skip to content

Commit

Permalink
fix format
Browse files Browse the repository at this point in the history
Signed-off-by: Zhang Bo <[email protected]>
  • Loading branch information
zhangbo1882 committed Jul 2, 2024
1 parent 677eb2a commit 0b3c0f6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
5 changes: 1 addition & 4 deletions source/common/tls/server_context_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@
#include "source/common/runtime/runtime_features.h"
#include "source/common/stats/utility.h"
#include "source/common/tls/cert_validator/factory.h"
#include "source/common/tls/context_config_impl.h"
#include "source/common/tls/stats.h"
#include "source/common/tls/utility.h"

#include ""
#include "absl/container/node_hash_set.h"
#include "absl/strings/match.h"
#include "absl/strings/str_join.h"
Expand Down Expand Up @@ -183,9 +183,6 @@ ServerContextImpl::ServerContextImpl(Stats::Scope& scope,
int mode = SSL_CTX_get_session_cache_mode(ctx.ssl_ctx_.get());
ENVOY_LOG(info, "ssl session cache mode: {:x}", mode);

// SSL_CTX_set_session_cache_mode(ctx.ssl_ctx_.get(), mode |
// SSL_SESS_CACHE_NO_INTERNAL_STORE);

SSL_CTX_sess_set_new_cb(ctx.ssl_ctx_.get(), [](SSL* ssl, SSL_SESSION* session) -> int {
(void)ssl;
/* https://www.openssl.org/docs/man1.0.2/man3/d2i_SSL_SESSION.html
Expand Down
2 changes: 1 addition & 1 deletion source/common/tls/session_cache/session_cache.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class Client {
virtual ~Client() = default;

/**
* Request to store/fetchdd a TLS session to/from remote cache.
* Request to store/fetch a TLS session to/from remote cache.
* NOTE: It is possible for the completion callback to be called immediately on the same stack
* frame. Calling code should account for this.
* @param callbacks supplies the completion callbacks.
Expand Down
1 change: 1 addition & 0 deletions tools/spelling/spelling_dictionary.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1254,6 +1254,7 @@ serializable
serializer
serv
servercert
sess
setenv
setsockopt
sfixed
Expand Down

0 comments on commit 0b3c0f6

Please sign in to comment.