Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nginx-push-stream-module
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
nginx-push-stream-module
Commits
9bce6069
Commit
9bce6069
authored
Jul 06, 2015
by
Wandenberg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove unecessary PING frame sent after publish a message
parent
3c65a1df
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
2 deletions
+1
-2
websocket_spec.rb
misc/spec/subscriber/websocket_spec.rb
+1
-1
ngx_http_push_stream_module_websocket.c
src/ngx_http_push_stream_module_websocket.c
+0
-1
No files found.
misc/spec/subscriber/websocket_spec.rb
View file @
9bce6069
...
@@ -320,7 +320,7 @@ describe "Subscriber WebSocket" do
...
@@ -320,7 +320,7 @@ describe "Subscriber WebSocket" do
socket
.
print
(
frame
)
socket
.
print
(
frame
)
body
,
dummy
=
read_response_on_socket
(
socket
,
"ch1"
)
body
,
dummy
=
read_response_on_socket
(
socket
,
"ch1"
)
expect
(
body
).
to
eql
(
"
\
211\000\
x81
.{
\"
channel
\"
:
\"
ch2
\"
,
\"
id
\"
:
\"
1
\"
,
\"
message
\"
:
\"
hello
\"
}
\x81
.{
\"
channel
\"
:
\"
ch1
\"
,
\"
id
\"
:
\"
1
\"
,
\"
message
\"
:
\"
hello
\"
}"
)
expect
(
body
).
to
eql
(
"
\x81
.{
\"
channel
\"
:
\"
ch2
\"
,
\"
id
\"
:
\"
1
\"
,
\"
message
\"
:
\"
hello
\"
}
\x81
.{
\"
channel
\"
:
\"
ch1
\"
,
\"
id
\"
:
\"
1
\"
,
\"
message
\"
:
\"
hello
\"
}"
)
socket
.
close
socket
.
close
EventMachine
.
run
do
EventMachine
.
run
do
...
...
src/ngx_http_push_stream_module_websocket.c
View file @
9bce6069
...
@@ -302,7 +302,6 @@ ngx_http_push_stream_websocket_reading(ngx_http_request_t *r)
...
@@ -302,7 +302,6 @@ ngx_http_push_stream_websocket_reading(ngx_http_request_t *r)
goto
finalize
;
goto
finalize
;
}
}
}
}
ngx_http_push_stream_send_response_text
(
r
,
NGX_HTTP_PUSH_STREAM_WEBSOCKET_PING_LAST_FRAME_BYTE
,
sizeof
(
NGX_HTTP_PUSH_STREAM_WEBSOCKET_PING_LAST_FRAME_BYTE
),
1
);
}
}
if
(
ctx
->
temp_pool
!=
NULL
)
{
if
(
ctx
->
temp_pool
!=
NULL
)
{
...
...
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