File tree Expand file tree Collapse file tree 2 files changed +7
-13
lines changed Expand file tree Collapse file tree 2 files changed +7
-13
lines changed Original file line number Diff line number Diff line change @@ -59,13 +59,7 @@ TLSWrap::TLSWrap(Environment* env,
5959 AsyncWrap::PROVIDER_TLSWRAP),
6060 SSLWrap<TLSWrap>(env, sc, kind),
6161 StreamBase(env),
62- sc_(sc),
63- write_size_(0 ),
64- started_(false ),
65- established_(false ),
66- shutdown_(false ),
67- cycle_depth_(0 ),
68- eof_(false ) {
62+ sc_(sc) {
6963 MakeWeak ();
7064
7165 // sc comes from an Unwrap. Make sure it was assigned.
Original file line number Diff line number Diff line change @@ -149,19 +149,19 @@ class TLSWrap : public AsyncWrap,
149149 BIO* enc_in_ = nullptr ;
150150 BIO* enc_out_ = nullptr ;
151151 std::vector<uv_buf_t > pending_cleartext_input_;
152- size_t write_size_;
152+ size_t write_size_ = 0 ;
153153 WriteWrap* current_write_ = nullptr ;
154154 WriteWrap* current_empty_write_ = nullptr ;
155155 bool write_callback_scheduled_ = false ;
156- bool started_;
157- bool established_;
158- bool shutdown_;
156+ bool started_ = false ;
157+ bool established_ = false ;
158+ bool shutdown_ = false ;
159159 std::string error_;
160- int cycle_depth_;
160+ int cycle_depth_ = 0 ;
161161
162162 // If true - delivered EOF to the js-land, either after `close_notify`, or
163163 // after the `UV_EOF` on socket.
164- bool eof_;
164+ bool eof_ = false ;
165165
166166 private:
167167 static void GetWriteQueueSize (
You can’t perform that action at this time.
0 commit comments