Skip to content

Commit

Permalink
src: add default initializer in tls_wrap
Browse files Browse the repository at this point in the history
PR-URL: #23567
Reviewed-By: Joyee Cheung <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Gireesh Punathil <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
  • Loading branch information
richardhoehn authored and MylesBorins committed Nov 29, 2018
1 parent d574d86 commit d152d7f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 13 deletions.
8 changes: 1 addition & 7 deletions src/tls_wrap.cc
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,7 @@ TLSWrap::TLSWrap(Environment* env,
AsyncWrap::PROVIDER_TLSWRAP),
SSLWrap<TLSWrap>(env, sc, kind),
StreamBase(env),
sc_(sc),
write_size_(0),
started_(false),
established_(false),
shutdown_(false),
cycle_depth_(0),
eof_(false) {
sc_(sc) {
MakeWeak();

// sc comes from an Unwrap. Make sure it was assigned.
Expand Down
12 changes: 6 additions & 6 deletions src/tls_wrap.h
Original file line number Diff line number Diff line change
Expand Up @@ -149,19 +149,19 @@ class TLSWrap : public AsyncWrap,
BIO* enc_in_ = nullptr;
BIO* enc_out_ = nullptr;
std::vector<uv_buf_t> pending_cleartext_input_;
size_t write_size_;
size_t write_size_ = 0;
WriteWrap* current_write_ = nullptr;
WriteWrap* current_empty_write_ = nullptr;
bool write_callback_scheduled_ = false;
bool started_;
bool established_;
bool shutdown_;
bool started_ = false;
bool established_ = false;
bool shutdown_ = false;
std::string error_;
int cycle_depth_;
int cycle_depth_ = 0;

// If true - delivered EOF to the js-land, either after `close_notify`, or
// after the `UV_EOF` on socket.
bool eof_;
bool eof_ = false;

private:
static void GetWriteQueueSize(
Expand Down

0 comments on commit d152d7f

Please sign in to comment.