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
8c456674
Commit
8c456674
authored
Dec 09, 2012
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shrpx: Remove upstream_spdy_stream and upstream_spdy_stream_close
upstream_response logs more detailed information.
parent
90eebbc8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
36 deletions
+0
-36
src/shrpx_accesslog.cc
src/shrpx_accesslog.cc
+0
-25
src/shrpx_accesslog.h
src/shrpx_accesslog.h
+0
-3
src/shrpx_spdy_upstream.cc
src/shrpx_spdy_upstream.cc
+0
-8
No files found.
src/shrpx_accesslog.cc
View file @
8c456674
...
...
@@ -63,31 +63,6 @@ void upstream_connect(const std::string& client_ip)
}
}
void
upstream_spdy_stream
(
const
std
::
string
&
client_ip
,
int32_t
stream_id
)
{
char
datestr
[
64
];
get_datestr
(
datestr
);
fprintf
(
stderr
,
"%s [%s] SYN_STREAM %d
\n
"
,
client_ip
.
c_str
(),
datestr
,
stream_id
);
fflush
(
stderr
);
if
(
get_config
()
->
use_syslog
)
{
syslog
(
LOG_INFO
,
"%s SYN_STREAM %d
\n
"
,
client_ip
.
c_str
(),
stream_id
);
}
}
void
upstream_spdy_stream_close
(
const
std
::
string
&
client_ip
,
int32_t
stream_id
)
{
char
datestr
[
64
];
get_datestr
(
datestr
);
fprintf
(
stderr
,
"%s [%s] STREAM_CLOSE %d
\n
"
,
client_ip
.
c_str
(),
datestr
,
stream_id
);
fflush
(
stderr
);
if
(
get_config
()
->
use_syslog
)
{
syslog
(
LOG_INFO
,
"%s STREAM_CLOSE %d
\n
"
,
client_ip
.
c_str
(),
stream_id
);
}
}
namespace
{
const
char
*
status_code_color
(
int
status_code
)
{
...
...
src/shrpx_accesslog.h
View file @
8c456674
...
...
@@ -34,9 +34,6 @@ namespace shrpx {
class
Downstream
;
void
upstream_connect
(
const
std
::
string
&
client_ip
);
void
upstream_spdy_stream
(
const
std
::
string
&
client_ip
,
int32_t
stream_id
);
void
upstream_spdy_stream_close
(
const
std
::
string
&
client_ip
,
int32_t
stream_id
);
void
upstream_response
(
const
std
::
string
&
client_ip
,
int
status_code
,
Downstream
*
downstream
);
...
...
src/shrpx_spdy_upstream.cc
View file @
8c456674
...
...
@@ -99,10 +99,6 @@ void on_stream_close_callback
<<
" is being closed"
;
}
Downstream
*
downstream
=
upstream
->
find_downstream
(
stream_id
);
if
(
get_config
()
->
accesslog
)
{
upstream_spdy_stream_close
(
upstream
->
get_client_handler
()
->
get_ipaddr
(),
stream_id
);
}
if
(
downstream
)
{
if
(
downstream
->
get_request_state
()
==
Downstream
::
CONNECT_FAIL
)
{
upstream
->
remove_downstream
(
downstream
);
...
...
@@ -219,10 +215,6 @@ void on_ctrl_recv_callback
upstream
->
rst_stream
(
downstream
,
SPDYLAY_INTERNAL_ERROR
);
return
;
}
if
(
get_config
()
->
accesslog
)
{
upstream_spdy_stream
(
upstream
->
get_client_handler
()
->
get_ipaddr
(),
frame
->
syn_stream
.
stream_id
);
}
downstream
->
set_request_state
(
Downstream
::
HEADER_COMPLETE
);
if
(
frame
->
syn_stream
.
hd
.
flags
&
SPDYLAY_CTRL_FLAG_FIN
)
{
downstream
->
set_request_state
(
Downstream
::
MSG_COMPLETE
);
...
...
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