Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publish from other nginx modules and send channels events to internal locations #284

Open
wants to merge 89 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
89 commits
Select commit Hold shift + click to select a range
60a1f47
Publish from other nginx modules
RekGRpth Oct 16, 2018
810e2d0
send channels events to internal locations
RekGRpth Oct 16, 2018
6a6dca7
publish from websocket to internal locations
RekGRpth Oct 19, 2018
029670d
publish from websocket to internal locations
RekGRpth Oct 23, 2018
8a467f7
publish from websocket to internal locations application/json
RekGRpth Oct 23, 2018
9d7ad4a
publish from websocket to internal locations
RekGRpth Oct 23, 2018
7a7a417
pool
RekGRpth Dec 20, 2018
215d5af
Merge remote-tracking branch 'upstream/master'
RekGRpth Feb 11, 2019
7ae15ed
all_worker_clients_unsubscribed
RekGRpth Sep 8, 2019
de7fa9a
notify
RekGRpth Sep 13, 2019
4109952
Delete from other nginx modeles
RekGRpth Sep 18, 2019
58814ca
temp_pool
RekGRpth Sep 20, 2019
a9117a4
include
RekGRpth Mar 25, 2020
48eb8c9
Merge remote-tracking branch 'upstream/master'
RekGRpth Apr 12, 2020
9b700f0
Merge remote-tracking branch 'upstream/master'
RekGRpth May 4, 2020
71cc50e
Bump rack from 2.2.2 to 2.2.3 in /misc
dependabot[bot] Aug 26, 2020
ecbc847
Merge pull request #1 from RekGRpth/dependabot/bundler/misc/rack-2.2.3
RekGRpth Aug 26, 2020
4f663a1
up
RekGRpth Sep 1, 2020
8623a2b
allow don't send same message twice and more
RekGRpth May 18, 2021
d601a75
Bump nokogiri from 1.10.9 to 1.11.4 in /misc
dependabot[bot] May 18, 2021
1c89c44
Merge pull request #2 from RekGRpth/dependabot/bundler/misc/nokogiri-…
RekGRpth May 18, 2021
0aef09e
return done if message already sent
RekGRpth May 19, 2021
b97401a
Merge branch 'master' of github.com:RekGRpth/nginx-push-stream-module
RekGRpth May 19, 2021
5ab6ad8
Bump em-http-request from 1.1.5 to 1.1.7 in /misc
dependabot[bot] May 24, 2021
93745bd
Merge pull request #3 from RekGRpth/dependabot/bundler/misc/em-http-r…
RekGRpth May 25, 2021
3db601c
static
RekGRpth Jun 8, 2021
115d7a9
fix
RekGRpth Jun 8, 2021
0ea7389
Bump addressable from 2.7.0 to 2.8.0 in /misc
dependabot[bot] Jul 13, 2021
7179eda
Merge pull request #4 from RekGRpth/dependabot/bundler/misc/addressab…
RekGRpth Jul 13, 2021
04ebd80
workflows
RekGRpth Jul 30, 2021
e496e43
dependabot
RekGRpth Jul 31, 2021
ad20651
merge
RekGRpth Jul 31, 2021
6796269
merge
RekGRpth Aug 1, 2021
56a8765
up
RekGRpth Aug 1, 2021
dd2bdb5
up
RekGRpth Aug 2, 2021
223f5da
merge
RekGRpth Aug 3, 2021
004cc8c
merge
RekGRpth Aug 4, 2021
dca8c58
up
RekGRpth Aug 4, 2021
7389f26
merge
RekGRpth Aug 4, 2021
b1c2504
up
RekGRpth Aug 6, 2021
f33c79c
merge
RekGRpth Aug 8, 2021
682ce93
merge
RekGRpth Aug 9, 2021
3869f06
Bump nokogiri from 1.11.4 to 1.12.5 in /misc
dependabot[bot] Sep 28, 2021
d785144
Merge pull request #5 from RekGRpth/dependabot/bundler/misc/nokogiri-…
RekGRpth Sep 28, 2021
da91059
Unused variable: channels_per_connection
RekGRpth Oct 8, 2021
2bec914
Variable 'bytes_written' is assigned a value that is never used
RekGRpth Oct 8, 2021
d663f12
make cppcheck happy
RekGRpth Nov 10, 2021
2439cef
Merge remote-tracking branch 'upstream/master'
actions-user Dec 1, 2021
b7b1027
Merge remote-tracking branch 'upstream/master'
RekGRpth Dec 12, 2021
84da57d
keepalive
actions-user Jan 31, 2022
930e5b6
Bump nokogiri from 1.12.5 to 1.13.2 in /misc
dependabot[bot] Feb 26, 2022
b809753
Merge pull request #6 from RekGRpth/dependabot/bundler/misc/nokogiri-…
RekGRpth Feb 26, 2022
f36a701
Bump nokogiri from 1.13.2 to 1.13.4 in /misc
dependabot[bot] Apr 12, 2022
bacdd02
Merge pull request #7 from RekGRpth/dependabot/bundler/misc/nokogiri-…
RekGRpth Apr 12, 2022
9e75dc7
fix
RekGRpth Apr 15, 2022
51e4f4c
Bump ejs from 3.1.6 to 3.1.8 in /misc
dependabot[bot] May 16, 2022
06c0a46
Merge pull request #8 from RekGRpth/dependabot/npm_and_yarn/misc/ejs-…
RekGRpth May 17, 2022
634da31
Bump nokogiri from 1.13.4 to 1.13.5 in /misc
dependabot[bot] May 19, 2022
38aed1a
Merge pull request #9 from RekGRpth/dependabot/bundler/misc/nokogiri-…
RekGRpth May 19, 2022
0297496
Bump nokogiri from 1.13.5 to 1.13.6 in /misc
dependabot[bot] May 24, 2022
ead73a5
Merge pull request #10 from RekGRpth/dependabot/bundler/misc/nokogiri…
RekGRpth May 24, 2022
0b8810f
Merge remote-tracking branch 'upstream/master'
RekGRpth Jun 28, 2022
b4d5bb0
keepalive
actions-user Aug 17, 2022
a1ad62c
keepalive
actions-user Oct 6, 2022
3fb2c71
Bump nokogiri from 1.13.6 to 1.13.9 in /misc
dependabot[bot] Oct 21, 2022
6ee44bc
Bump minimatch from 3.0.4 to 3.0.8 in /misc
dependabot[bot] Nov 12, 2022
03b79e3
Merge pull request #11 from RekGRpth/dependabot/bundler/misc/nokogiri…
RekGRpth Nov 13, 2022
bcfc433
Merge pull request #12 from RekGRpth/dependabot/npm_and_yarn/misc/min…
RekGRpth Nov 13, 2022
d10f3d3
keepalive
actions-user Jan 2, 2023
1f93ff3
keepalive
actions-user Feb 21, 2023
36cb8cd
keepalive
actions-user Apr 13, 2023
c41f540
Merge remote-tracking branch 'upstream/master'
actions-user Apr 20, 2023
1290b93
keepalive
actions-user Jun 10, 2023
1ad9769
keepalive
actions-user Jul 31, 2023
8ecaa0a
keepalive
actions-user Sep 19, 2023
c8d632b
keepalive
actions-user Nov 8, 2023
e3aac3e
angie
RekGRpth Dec 2, 2023
c949054
Merge branch 'master' of github.com:RekGRpth/nginx-push-stream-module
RekGRpth Dec 2, 2023
e9e9016
keepalive
actions-user Jan 21, 2024
9efb6e2
keepalive
actions-user Mar 11, 2024
ec2751c
freenginx
RekGRpth Apr 18, 2024
e1fc09e
Merge remote-tracking branch 'upstream/master'
RekGRpth May 7, 2024
1cf4a23
Merge remote-tracking branch 'upstream/master'
actions-user May 10, 2024
183fb82
keepalive
actions-user Jun 30, 2024
fd7508d
keepalive
actions-user Aug 19, 2024
3c09f63
keepalive
actions-user Oct 9, 2024
cb6864c
keepalive
actions-user Nov 28, 2024
3eeb332
keepalive
actions-user Jan 18, 2025
3dde095
keepalive
actions-user Mar 10, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
temp_pool
  • Loading branch information
RekGRpth committed Sep 20, 2019
commit 58814caf593f310af1e7a0528ef2eb8c4897adb3
4 changes: 2 additions & 2 deletions include/ngx_http_push_stream_module_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ static void ngx_http_push_stream_complex_value(ngx_http_request_


ngx_int_t ngx_http_push_stream_add_msg_to_channel(ngx_http_push_stream_main_conf_t *mcf, ngx_log_t *log, ngx_http_push_stream_channel_t *channel, u_char *text, size_t len, ngx_str_t *event_id, ngx_str_t *event_type, ngx_flag_t store_messages, ngx_pool_t *temp_pool);
ngx_int_t ngx_http_push_stream_add_msg_to_channel_my(ngx_log_t *log, ngx_str_t *id, ngx_str_t *text, ngx_str_t *event_id, ngx_str_t *event_type, ngx_flag_t store_messages, ngx_pool_t *pool);
ngx_int_t ngx_http_push_stream_add_msg_to_channel_my(ngx_log_t *log, ngx_str_t *id, ngx_str_t *text, ngx_str_t *event_id, ngx_str_t *event_type, ngx_flag_t store_messages, ngx_pool_t *temp_pool);
ngx_int_t ngx_http_push_stream_send_event(ngx_http_push_stream_main_conf_t *mcf, ngx_log_t *log, ngx_http_push_stream_channel_t *channel, ngx_str_t *event_id, ngx_pool_t *temp_pool, ngx_http_request_t *r, ngx_http_complex_value_t *uri);

static void ngx_http_push_stream_ping_timer_wake_handler(ngx_event_t *ev);
Expand All @@ -283,7 +283,7 @@ static ngx_str_t * ngx_http_push_stream_create_str(ngx_pool_t *pool, ui

static void ngx_http_push_stream_throw_the_message_away(ngx_http_push_stream_msg_t *msg, ngx_http_push_stream_shm_data_t *data);
static ngx_int_t ngx_http_push_stream_delete_channel(ngx_http_push_stream_main_conf_t *mcf, ngx_http_push_stream_channel_t *channel, u_char *text, size_t len, ngx_pool_t *temp_pool);
ngx_int_t ngx_http_push_stream_delete_channel_my(ngx_log_t *log, ngx_str_t *id, u_char *text, size_t len, ngx_pool_t *pool);
ngx_int_t ngx_http_push_stream_delete_channel_my(ngx_log_t *log, ngx_str_t *id, u_char *text, size_t len, ngx_pool_t *temp_pool);
static void ngx_http_push_stream_collect_expired_messages_data(ngx_http_push_stream_shm_data_t *data, ngx_flag_t force);
static void ngx_http_push_stream_collect_expired_messages_and_empty_channels(ngx_flag_t force);
static void ngx_http_push_stream_free_message_memory(ngx_slab_pool_t *shpool, ngx_http_push_stream_msg_t *msg);
Expand Down
8 changes: 4 additions & 4 deletions src/ngx_http_push_stream_module_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -374,13 +374,13 @@ ngx_http_push_stream_convert_char_to_msg_on_shared(ngx_http_push_stream_main_con
return msg;
}

ngx_int_t ngx_http_push_stream_add_msg_to_channel_my(ngx_log_t *log, ngx_str_t *id, ngx_str_t *text, ngx_str_t *event_id, ngx_str_t *event_type, ngx_flag_t store_messages, ngx_pool_t *pool) {
ngx_int_t ngx_http_push_stream_add_msg_to_channel_my(ngx_log_t *log, ngx_str_t *id, ngx_str_t *text, ngx_str_t *event_id, ngx_str_t *event_type, ngx_flag_t store_messages, ngx_pool_t *temp_pool) {
ngx_http_push_stream_global_shm_data_t *global_data = (ngx_http_push_stream_global_shm_data_t *) ngx_http_push_stream_global_shm_zone->data;
for (ngx_queue_t *q = ngx_queue_head(&global_data->shm_datas_queue); q != ngx_queue_sentinel(&global_data->shm_datas_queue); q = ngx_queue_next(q)) {
ngx_http_push_stream_shm_data_t *data = ngx_queue_data(q, ngx_http_push_stream_shm_data_t, shm_data_queue);
ngx_http_push_stream_main_conf_t *mcf = data->mcf;
ngx_http_push_stream_channel_t *channel = ngx_http_push_stream_find_channel(id, log, mcf);
if (channel) return ngx_http_push_stream_add_msg_to_channel(mcf, log, channel, text->data, text->len, event_id, event_type, store_messages, pool);
if (channel) return ngx_http_push_stream_add_msg_to_channel(mcf, log, channel, text->data, text->len, event_id, event_type, store_messages, temp_pool);
}
return NGX_DECLINED;
}
Expand Down Expand Up @@ -957,7 +957,7 @@ ngx_http_push_stream_send_websocket_close_frame(ngx_http_request_t *r, ngx_uint_
return (rc == NGX_ERROR) ? NGX_DONE : NGX_OK;
}

ngx_int_t ngx_http_push_stream_delete_channel_my(ngx_log_t *log, ngx_str_t *id, u_char *text, size_t len, ngx_pool_t *pool) {
ngx_int_t ngx_http_push_stream_delete_channel_my(ngx_log_t *log, ngx_str_t *id, u_char *text, size_t len, ngx_pool_t *temp_pool) {
ngx_http_push_stream_global_shm_data_t *global_data = (ngx_http_push_stream_global_shm_data_t *) ngx_http_push_stream_global_shm_zone->data;
for (ngx_queue_t *q = ngx_queue_head(&global_data->shm_datas_queue); q != ngx_queue_sentinel(&global_data->shm_datas_queue); q = ngx_queue_next(q)) {
ngx_http_push_stream_shm_data_t *data = ngx_queue_data(q, ngx_http_push_stream_shm_data_t, shm_data_queue);
Expand All @@ -966,7 +966,7 @@ ngx_int_t ngx_http_push_stream_delete_channel_my(ngx_log_t *log, ngx_str_t *id,
if (channel) {
if (!text) text = mcf->channel_deleted_message_text.data;
if (!len) len = mcf->channel_deleted_message_text.len;
return ngx_http_push_stream_delete_channel(mcf, channel, text, len, pool);
return ngx_http_push_stream_delete_channel(mcf, channel, text, len, temp_pool);
}
}
return NGX_DECLINED;
Expand Down