aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/response.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/microhttpd/response.c')
-rw-r--r--src/microhttpd/response.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/microhttpd/response.c b/src/microhttpd/response.c
index 4ea251d3..d9055416 100644
--- a/src/microhttpd/response.c
+++ b/src/microhttpd/response.c
@@ -667,13 +667,6 @@ MHD_upgrade_action (struct MHD_UpgradeResponseHandle *urh,
667 return MHD_NO; /* Already closed. */ 667 return MHD_NO; /* Already closed. */
668 668
669 /* transition to special 'closed' state for start of cleanup */ 669 /* transition to special 'closed' state for start of cleanup */
670 urh->was_closed = true;
671 EXTRA_CHECK (MHD_CONNECTION_UPGRADE == connection->state);
672 connection->state = MHD_CONNECTION_UPGRADE_CLOSED;
673 /* As soon as connection will be marked with BOTH
674 * 'urh->was_closed' AND 'urh->clean_ready', it will
675 * be moved to cleanup list by MHD_resume_connection(). */
676 MHD_resume_connection (connection);
677#ifdef HTTPS_SUPPORT 670#ifdef HTTPS_SUPPORT
678 if (0 != (daemon->options & MHD_USE_TLS) ) 671 if (0 != (daemon->options & MHD_USE_TLS) )
679 { 672 {
@@ -683,6 +676,13 @@ MHD_upgrade_action (struct MHD_UpgradeResponseHandle *urh,
683 SHUT_RDWR); 676 SHUT_RDWR);
684 } 677 }
685#endif /* HTTPS_SUPPORT */ 678#endif /* HTTPS_SUPPORT */
679 urh->was_closed = true;
680 EXTRA_CHECK (MHD_CONNECTION_UPGRADE == connection->state);
681 connection->state = MHD_CONNECTION_UPGRADE_CLOSED;
682 /* As soon as connection will be marked with BOTH
683 * 'urh->was_closed' AND 'urh->clean_ready', it will
684 * be moved to cleanup list by MHD_resume_connection(). */
685 MHD_resume_connection (connection);
686 return MHD_YES; 686 return MHD_YES;
687 default: 687 default:
688 /* we don't understand this one */ 688 /* we don't understand this one */