Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nghttp2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
nghttp2
Commits
c654549d
Commit
c654549d
authored
Jan 02, 2015
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nghttpx: Remove commented code
parent
64589750
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
65 deletions
+0
-65
src/shrpx_http2_session.cc
src/shrpx_http2_session.cc
+0
-65
No files found.
src/shrpx_http2_session.cc
View file @
c654549d
...
...
@@ -70,47 +70,6 @@ void settings_timeout_cb(struct ev_loop *loop, ev_timer *w, int revents) {
}
}
// namespace
// Do this in tls_handshake
// if (events & BEV_EVENT_CONNECTED) {
// if (LOG_ENABLED(INFO)) {
// SSLOG(INFO, http2session) << "Connection established";
// }
// http2session->set_state(Http2Session::CONNECTED);
// if (!get_config()->downstream_no_tls && !get_config()->insecure &&
// http2session->check_cert() != 0) {
// http2session->disconnect(true);
// return;
// }
// if (http2session->on_connect() != 0) {
// http2session->disconnect(true);
// return;
// }
// auto fd = bufferevent_getfd(bev);
// int val = 1;
// if (setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, reinterpret_cast<char
// *>(&val),
// sizeof(val)) == -1) {
// auto error = errno;
// SSLOG(WARN, http2session)
// << "Setting option TCP_NODELAY failed: errno=" << error;
// }
// return;
// }
// TODO check EOF in read function
// if (events & BEV_EVENT_EOF) {
// if (LOG_ENABLED(INFO)) {
// SSLOG(INFO, http2session) << "EOF";
// }
// http2session->disconnect(http2session->get_state() ==
// Http2Session::CONNECTING);
// return;
// }
namespace
{
void
timeoutcb
(
struct
ev_loop
*
loop
,
ev_timer
*
w
,
int
revents
)
{
auto
http2session
=
static_cast
<
Http2Session
*>
(
w
->
data
);
...
...
@@ -294,30 +253,6 @@ int Http2Session::disconnect(bool hard) {
return
0
;
}
// if (events & BEV_EVENT_EOF) {
// if (LOG_ENABLED(INFO)) {
// SSLOG(INFO, http2session) << "Proxy EOF";
// }
// http2session->disconnect(http2session->get_state() ==
// Http2Session::PROXY_CONNECTING);
// return;
// }
// if (events & (BEV_EVENT_ERROR | BEV_EVENT_TIMEOUT)) {
// if (LOG_ENABLED(INFO)) {
// if (events & BEV_EVENT_ERROR) {
// SSLOG(INFO, http2session) << "Network error";
// } else {
// SSLOG(INFO, http2session) << "Timeout";
// }
// }
// http2session->disconnect(http2session->get_state() ==
// Http2Session::PROXY_CONNECTING);
// return;
// }
// }
// } // namespace
int
Http2Session
::
check_cert
()
{
return
ssl
::
check_cert
(
ssl_
);
}
int
Http2Session
::
initiate_connection
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment