File tree 2 files changed +7
-13
lines changed
2 files changed +7
-13
lines changed Original file line number Diff line number Diff line change @@ -58,13 +58,7 @@ TLSWrap::TLSWrap(Environment* env,
58
58
AsyncWrap::PROVIDER_TLSWRAP),
59
59
SSLWrap<TLSWrap>(env, sc, kind),
60
60
StreamBase(env),
61
- sc_(sc),
62
- write_size_(0 ),
63
- started_(false ),
64
- established_(false ),
65
- shutdown_(false ),
66
- cycle_depth_(0 ),
67
- eof_(false ) {
61
+ sc_(sc) {
68
62
MakeWeak ();
69
63
70
64
// 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,
149
149
BIO* enc_in_ = nullptr ;
150
150
BIO* enc_out_ = nullptr ;
151
151
std::vector<uv_buf_t > pending_cleartext_input_;
152
- size_t write_size_;
152
+ size_t write_size_ = 0 ;
153
153
WriteWrap* current_write_ = nullptr ;
154
154
WriteWrap* current_empty_write_ = nullptr ;
155
155
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 ;
159
159
std::string error_;
160
- int cycle_depth_;
160
+ int cycle_depth_ = 0 ;
161
161
162
162
// If true - delivered EOF to the js-land, either after `close_notify`, or
163
163
// after the `UV_EOF` on socket.
164
- bool eof_;
164
+ bool eof_ = false ;
165
165
166
166
private:
167
167
static void GetWriteQueueSize (
You can’t perform that action at this time.
0 commit comments