[Groonga-commit] groonga/groonga at a9f2dee [master] httpd: fix too much response on quit/shutdown error

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Apr 13 10:10:19 JST 2017


Kouhei Sutou	2017-04-13 10:10:19 +0900 (Thu, 13 Apr 2017)

  New Revision: a9f2deeeb86ee1abd9b033e65e651ca752373ade
  https://github.com/groonga/groonga/commit/a9f2deeeb86ee1abd9b033e65e651ca752373ade

  Message:
    httpd: fix too much response on quit/shutdown error
    
    GitHub: fix ranguba/groonga-client#12
    
    Reported by Kenji Okimoto. Thanks!!!

  Modified files:
    src/httpd/nginx-module/ngx_http_groonga_module.c

  Modified: src/httpd/nginx-module/ngx_http_groonga_module.c (+2 -1)
===================================================================
--- src/httpd/nginx-module/ngx_http_groonga_module.c    2017-04-12 17:31:11 +0900 (d11aaaa)
+++ src/httpd/nginx-module/ngx_http_groonga_module.c    2017-04-13 10:10:19 +0900 (15836a9)
@@ -528,7 +528,8 @@ ngx_http_groonga_context_receive_handler_typed(grn_ctx *context,
       context->stat |= GRN_CTX_QUIT;
     } else {
       context->rc = GRN_OPERATION_NOT_PERMITTED;
-      GRN_TEXT_PUTS(context, &(data->typed.body), "false");
+      result = "false";
+      result_size = strlen(result);
       context->stat &= ~GRN_CTX_QUIT;
     }
   }
-------------- next part --------------
HTML����������������������������...
Télécharger 



More information about the Groonga-commit mailing list
Back to archive index