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

flv回源,上级响应200OK 但是空响应,会core #85

Open
xbc112233 opened this issue Feb 11, 2022 · 0 comments
Open

flv回源,上级响应200OK 但是空响应,会core #85

xbc112233 opened this issue Feb 11, 2022 · 0 comments

Comments

@xbc112233
Copy link

cl未初始化为NULL,ngx_live_relay_httpflv_recv_body有可能是赋值不上的,如下修改即可,希望pingos大佬帮review下
--- a/modules/nginx-rtmp-module/ngx_live_relay_httpflv.c
+++ b/modules/nginx-rtmp-module/ngx_live_relay_httpflv.c
@@ -361,6 +361,7 @@ ngx_live_relay_httpflv_recv_body(void *request, ngx_http_request_t *hcr)
ngx_rtmp_stream_t *st = NULL;

 s = request;
  • cl = NULL;

    n = ngx_http_client_read_body(hcr, &cl);

@@ -373,6 +374,10 @@ ngx_live_relay_httpflv_recv_body(void *request, ngx_http_request_t *hcr)
return;
}

  • if (cl == NULL) {
  •    return;
    
  • }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant