|
75 | 75 | #include "P_EventSystem.h" |
76 | 76 | #include "P_Net.h" |
77 | 77 | #include "Regression.h" |
78 | | -#include "HttpClientSession.h" |
79 | 78 |
|
80 | 79 | #define PVC_LOCK_RETRY_TIME HRTIME_MSECONDS(10) |
81 | 80 | #define PVC_DEFAULT_MAX_BYTES 32768 |
|
87 | 86 | #define PVC_TYPE ((vc_type == PLUGIN_VC_ACTIVE) ? "Active" : "Passive") |
88 | 87 |
|
89 | 88 | PluginVC::PluginVC(PluginVCCore *core_obj) |
90 | | - : NetVConnection(), magic(PLUGIN_VC_MAGIC_ALIVE), vc_type(PLUGIN_VC_UNKNOWN), core_obj(core_obj), other_side(NULL), |
91 | | - owner_cont(NULL), read_state(), write_state(), need_read_process(false), need_write_process(false), closed(false), sm_lock_retry_event(NULL), |
| 89 | + : NetVConnection(), magic(PLUGIN_VC_MAGIC_ALIVE), vc_type(PLUGIN_VC_UNKNOWN), core_obj(core_obj), other_side(NULL), read_state(), |
| 90 | + write_state(), need_read_process(false), need_write_process(false), closed(false), sm_lock_retry_event(NULL), |
92 | 91 | core_lock_retry_event(NULL), deletable(false), reentrancy_count(0), active_timeout(0), active_event(NULL), inactive_timeout(0), |
93 | 92 | inactive_timeout_at(0), inactive_event(NULL), plugin_tag(NULL), plugin_id(0) |
94 | 93 | { |
@@ -248,18 +247,6 @@ PluginVC::do_io_read(Continuation *c, int64_t nbytes, MIOBuffer *buf) |
248 | 247 | read_state.vio.op = VIO::READ; |
249 | 248 |
|
250 | 249 | Debug("pvc", "[%u] %s: do_io_read for %" PRId64 " bytes", core_obj->id, PVC_TYPE, nbytes); |
251 | | - |
252 | | - HttpClientSession *client_session = NULL; |
253 | | - Continuation *cont = NULL; |
254 | | - if ((cont = read_state.vio._cont)) { |
255 | | - client_session = dynamic_cast<HttpClientSession *>(cont); |
256 | | - } |
257 | | - // added to give the child HttpClientSession access to its SpdyClientSession parent for logging purposes |
258 | | - // kind of hacky, not my favorite impl |
259 | | - if (client_session && core_obj && core_obj->active_vc.owner_cont) { |
260 | | - client_session->set_parent_cont(core_obj->active_vc.owner_cont); |
261 | | - Debug("pvc", "[%u] %s: Setting HttpClientSession parent cont=%p", core_obj->id, PVC_TYPE, core_obj->active_vc.owner_cont); |
262 | | - } |
263 | 250 |
|
264 | 251 | // Since reentrant callbacks are not allowed on from do_io |
265 | 252 | // functions schedule ourselves get on a different stack |
|
0 commit comments