diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-03-02 20:42:56 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-03-02 21:45:25 +0100 |
commit | 71a67ca95997fb2c3a90108a776f61fe1b95e68c (patch) | |
tree | 133397bb2199b93eedb95da8caab01873ca07f89 /src/microhttpd/connection.c | |
parent | 7f1dbb2aef40573861d9d19add648d1a327386f2 (diff) | |
download | libmicrohttpd-71a67ca95997fb2c3a90108a776f61fe1b95e68c.tar.gz libmicrohttpd-71a67ca95997fb2c3a90108a776f61fe1b95e68c.zip |
remove dead IN_CLEANUP state, revert previous patch that called completed callback from wrong thread
Diffstat (limited to 'src/microhttpd/connection.c')
-rw-r--r-- | src/microhttpd/connection.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c index 691aa427..d8d12c70 100644 --- a/src/microhttpd/connection.c +++ b/src/microhttpd/connection.c | |||
@@ -1948,9 +1948,6 @@ MHD_connection_update_event_loop_info (struct MHD_Connection *connection) | |||
1948 | case MHD_CONNECTION_CLOSED: | 1948 | case MHD_CONNECTION_CLOSED: |
1949 | connection->event_loop_info = MHD_EVENT_LOOP_INFO_CLEANUP; | 1949 | connection->event_loop_info = MHD_EVENT_LOOP_INFO_CLEANUP; |
1950 | return; /* do nothing, not even reading */ | 1950 | return; /* do nothing, not even reading */ |
1951 | case MHD_CONNECTION_IN_CLEANUP: | ||
1952 | mhd_assert (0); | ||
1953 | break; | ||
1954 | #ifdef UPGRADE_SUPPORT | 1951 | #ifdef UPGRADE_SUPPORT |
1955 | case MHD_CONNECTION_UPGRADE: | 1952 | case MHD_CONNECTION_UPGRADE: |
1956 | mhd_assert (0); | 1953 | mhd_assert (0); |
@@ -3151,9 +3148,6 @@ MHD_connection_handle_write (struct MHD_Connection *connection) | |||
3151 | return; | 3148 | return; |
3152 | case MHD_CONNECTION_CLOSED: | 3149 | case MHD_CONNECTION_CLOSED: |
3153 | return; | 3150 | return; |
3154 | case MHD_CONNECTION_IN_CLEANUP: | ||
3155 | mhd_assert (0); | ||
3156 | return; | ||
3157 | #ifdef UPGRADE_SUPPORT | 3151 | #ifdef UPGRADE_SUPPORT |
3158 | case MHD_CONNECTION_UPGRADE: | 3152 | case MHD_CONNECTION_UPGRADE: |
3159 | mhd_assert (0); | 3153 | mhd_assert (0); |
@@ -3857,8 +3851,7 @@ MHD_get_connection_info (struct MHD_Connection *connection, | |||
3857 | return (const union MHD_ConnectionInfo *) &connection->connection_timeout_dummy; | 3851 | return (const union MHD_ConnectionInfo *) &connection->connection_timeout_dummy; |
3858 | case MHD_CONNECTION_INFO_REQUEST_HEADER_SIZE: | 3852 | case MHD_CONNECTION_INFO_REQUEST_HEADER_SIZE: |
3859 | if ( (MHD_CONNECTION_HEADERS_RECEIVED > connection->state) || | 3853 | if ( (MHD_CONNECTION_HEADERS_RECEIVED > connection->state) || |
3860 | (MHD_CONNECTION_CLOSED == connection->state) || | 3854 | (MHD_CONNECTION_CLOSED == connection->state) ) |
3861 | (MHD_CONNECTION_IN_CLEANUP == connection->state) ) | ||
3862 | return NULL; /* invalid, too early! */ | 3855 | return NULL; /* invalid, too early! */ |
3863 | return (const union MHD_ConnectionInfo *) &connection->header_size; | 3856 | return (const union MHD_ConnectionInfo *) &connection->header_size; |
3864 | default: | 3857 | default: |