aboutsummaryrefslogtreecommitdiff
path: root/src/include/microhttpd2.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-02-17 04:02:42 +0100
committerChristian Grothoff <christian@grothoff.org>2018-02-17 04:02:42 +0100
commita5fa8a08ef2cf017444cfa476cb3d932c1f6ba74 (patch)
treeeea7f8d5d151b8e5113b93890a597de60e5b4c48 /src/include/microhttpd2.h
parentc0ac86b069fac3460fd2e4c7997245c5a1281536 (diff)
downloadlibmicrohttpd-a5fa8a08ef2cf017444cfa476cb3d932c1f6ba74.tar.gz
libmicrohttpd-a5fa8a08ef2cf017444cfa476cb3d932c1f6ba74.zip
more work on connnection_call_handlers.c
Diffstat (limited to 'src/include/microhttpd2.h')
-rw-r--r--src/include/microhttpd2.h53
1 files changed, 53 insertions, 0 deletions
diff --git a/src/include/microhttpd2.h b/src/include/microhttpd2.h
index 77181f44..8d89a807 100644
--- a/src/include/microhttpd2.h
+++ b/src/include/microhttpd2.h
@@ -358,6 +358,23 @@ enum MHD_StatusCode
358 */ 358 */
359 MHD_SC_THREAD_TERMINATING = 10003, 359 MHD_SC_THREAD_TERMINATING = 10003,
360 360
361 /**
362 * Informational event, state machine status for a connection.
363 */
364 MHD_SC_STATE_MACHINE_STATUS_REPORT = 10004,
365
366
367 /**
368 * MHD is closing a connection after the client closed it
369 * (perfectly normal end).
370 */
371 MHD_SC_CONNECTION_CLOSED = 20000,
372
373 /**
374 * MHD is closing a connection because the application
375 * logic to generate the response data completed.
376 */
377 MHD_SC_APPLICATION_DATA_GENERATION_FINISHED = 20001,
361 378
362 /** 379 /**
363 * Resource limit in terms of number of parallel connections 380 * Resource limit in terms of number of parallel connections
@@ -428,6 +445,36 @@ enum MHD_StatusCode
428 * being closed prematurely. (May be transient.) 445 * being closed prematurely. (May be transient.)
429 */ 446 */
430 MHD_SC_UPGRADE_FORWARD_INCOMPLETE = 30011, 447 MHD_SC_UPGRADE_FORWARD_INCOMPLETE = 30011,
448
449 /**
450 * MHD is closing a connection because it was reset.
451 */
452 MHD_SC_CONNECTION_RESET_CLOSED = 30012,
453
454 /**
455 * MHD is closing a connection because reading the
456 * request failed.
457 */
458 MHD_SC_CONNECTION_READ_FAIL_CLOSED = 30013,
459
460 /**
461 * MHD is closing a connection because writing the response failed.
462 */
463 MHD_SC_CONNECTION_WRITE_FAIL_CLOSED = 30014,
464
465 /**
466 * MHD is closing a connection because the application
467 * logic to generate the response data failed.
468 */
469 MHD_SC_APPLICATION_DATA_GENERATION_FAILURE_CLOSED = 30015,
470
471 /**
472 * We failed to allocate memory for generatig the response from our
473 * memory pool. Likely the request header was too large to leave
474 * enough room.
475 */
476 MHD_SC_CONNECTION_POOL_MALLOC_FAILURE = 30016,
477
431 478
432 479
433 /** 480 /**
@@ -735,6 +782,12 @@ enum MHD_StatusCode
735 * while having an upgrade connection still open. 782 * while having an upgrade connection still open.
736 */ 783 */
737 MHD_SC_SHUTDOWN_WITH_OPEN_UPGRADED_CONNECTION = 50053, 784 MHD_SC_SHUTDOWN_WITH_OPEN_UPGRADED_CONNECTION = 50053,
785
786 /**
787 * Due to an unexpected internal error with the
788 * state machine, we closed the connection.
789 */
790 MHD_SC_STATEMACHINE_FAILURE_CONNECTION_CLOSED = 50054,
738 791
739}; 792};
740 793