mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
src: add default initializer in tls_wrap
PR-URL: https://github.com/nodejs/node/pull/23567 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
This commit is contained in:
1 parent
d574d865d8
commit
d152d7fb60
2 files changed
+7
-13
No files matched your search
+1
-7
@@ -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.
|
||||
|
||||
+6
-6
@@ -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(
|
||||
|
||||
Reference in new issue
Block a user