[Groonga-commit] groonga/groonga at f8a75f3 [master] groonga-http: use 408 for canceled request

Back to archive index

Kouhei Sutou null+****@clear*****
Sun Apr 3 00:04:56 JST 2016


Kouhei Sutou	2016-04-03 00:04:56 +0900 (Sun, 03 Apr 2016)

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

  Message:
    groonga-http: use 408 for canceled request

  Modified files:
    src/groonga.c

  Modified: src/groonga.c (+3 -0)
===================================================================
--- src/groonga.c    2016-04-02 22:57:09 +0900 (05da238)
+++ src/groonga.c    2016-04-03 00:04:56 +0900 (493dd02)
@@ -803,6 +803,9 @@ h_output_set_header(grn_ctx *ctx, grn_obj *header,
   case GRN_NO_SUCH_FILE_OR_DIRECTORY :
     GRN_TEXT_SETS(ctx, header, "HTTP/1.1 404 Not Found\r\n");
     break;
+  case GRN_CANCEL :
+    GRN_TEXT_SETS(ctx, header, "HTTP/1.1 408 Request Timeout\r\n");
+    break;
   default :
     GRN_TEXT_SETS(ctx, header, "HTTP/1.1 500 Internal Server Error\r\n");
     break;
-------------- next part --------------
HTML����������������������������...
Télécharger 



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