diff options
Diffstat (limited to 'src/microhttpd/response.c')
-rw-r--r-- | src/microhttpd/response.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/microhttpd/response.c b/src/microhttpd/response.c index e50d2a55..fa7ed5b1 100644 --- a/src/microhttpd/response.c +++ b/src/microhttpd/response.c | |||
@@ -1773,11 +1773,12 @@ MHD_upgrade_action (struct MHD_UpgradeResponseHandle *urh, | |||
1773 | } | 1773 | } |
1774 | #endif /* HTTPS_SUPPORT */ | 1774 | #endif /* HTTPS_SUPPORT */ |
1775 | mhd_assert (MHD_CONNECTION_UPGRADE == connection->state); | 1775 | mhd_assert (MHD_CONNECTION_UPGRADE == connection->state); |
1776 | urh->was_closed = true; | 1776 | /* The next function will mark the connection as closed by application |
1777 | /* As soon as connection will be marked with BOTH | 1777 | * by setting 'urh->was_closed'. |
1778 | * As soon as connection will be marked with BOTH | ||
1778 | * 'urh->was_closed' AND 'urh->clean_ready', it will | 1779 | * 'urh->was_closed' AND 'urh->clean_ready', it will |
1779 | * be moved to cleanup list by MHD_resume_connection(). */ | 1780 | * be moved to cleanup list by MHD_resume_connection(). */ |
1780 | MHD_resume_connection (connection); | 1781 | upgraded_connection_mark_app_closed_ (connection); |
1781 | return MHD_YES; | 1782 | return MHD_YES; |
1782 | case MHD_UPGRADE_ACTION_CORK_ON: | 1783 | case MHD_UPGRADE_ACTION_CORK_ON: |
1783 | /* Unportable API. TODO: replace with portable action. */ | 1784 | /* Unportable API. TODO: replace with portable action. */ |