Commit Graph
2122 Commits
Author SHA1 Message Date
Evgeny Grin (Karlson2k) d7f5dece99 MHD_response_execute_upgrade_(): improved handling of buffer sizes 2016-10-27 22:44:59 +03:00
Evgeny Grin (Karlson2k) 9eebca21c0 struct MHD_UpgradeResponseHandle: improve readability by renaming members 2016-10-27 22:44:59 +03:00
Evgeny Grin (Karlson2k) 24b215aadc Improve upgraded TLS socket closure processing 2016-10-27 22:44:58 +03:00
Evgeny Grin (Karlson2k) afe4f08eda process_urh(): check returned errors and prevent further reading from socket when disconnect is detected. 2016-10-27 22:44:58 +03:00
Evgeny Grin (Karlson2k) aa4da2538f Upgrade: use socketpair only in non-blocking mode 2016-10-24 15:51:29 +03:00
Evgeny Grin (Karlson2k) 08c81c4906 Upgrade: fixed SO_NOSIGPIPE on socketpair. 2016-10-24 15:51:29 +03:00
Evgeny Grin (Karlson2k) a41dc5dce6 mhd_sockets.h: added MHD_socket_nosignal_() macro for Darwin and *BSD 2016-10-24 15:51:29 +03:00
Evgeny Grin (Karlson2k) 634cb0abd8 Cleanup minor improvement: signal select()'s thread at right moment. 2016-10-24 15:51:29 +03:00
Evgeny Grin (Karlson2k) 3e15e43b1f Added some remarks about functions' thread safety. 2016-10-24 15:51:28 +03:00
Evgeny Grin (Karlson2k) 0701ed2e8a Minor improvement of thread-safety. 2016-10-24 15:51:28 +03:00
Evgeny Grin (Karlson2k) 1ab20f6fb9 Destroy response when it's not needed. 2016-10-24 15:51:28 +03:00
Evgeny Grin (Karlson2k) 9d0ae2e223 mhd_sockets.h: Simplified macros 2016-10-22 15:41:39 +03:00
Evgeny Grin (Karlson2k) d7f1a95e22 test_upgrade: comments cleanup 2016-10-22 15:41:39 +03:00
Evgeny Grin (Karlson2k) 54a4333bc6 test_upgrade: minor fix 2016-10-22 15:41:39 +03:00
Evgeny Grin (Karlson2k) b8057a43d6 test_upgrade{,-ssl}: portability, second step 2016-10-22 15:41:38 +03:00
Evgeny Grin (Karlson2k) 5f33c34ae4 test_upgrade{,-ssl}: portability, first step 2016-10-22 15:41:38 +03:00
Evgeny Grin (Karlson2k) baa2d30d1c test_upgrade: be more verbose, fixed build without poll() 2016-10-22 15:41:38 +03:00
Karlson2k 334468c467 test_upgrade_ssl: use 'gnutls-cli' instead of 'openssl' 2016-10-22 15:41:11 +03:00
Evgeny Grin (Karlson2k) e573e782ce upgrade: fixed connection states with same value 2016-10-22 15:41:11 +03:00
Evgeny Grin (Karlson2k) 69e753bce5 process_urh(): use better variable names 2016-10-17 23:42:10 +03:00
Evgeny Grin (Karlson2k) 7235e65f98 MHD_cleanup_upgraded_connection_(): check pointer for NULL *before* dereferencing 2016-10-17 21:02:16 +03:00
Evgeny Grin (Karlson2k) 445c17837f Limit size for send() and recv() (and TLS counterparts) to safe values 2016-10-17 20:43:31 +03:00
Christian Grothoff c061d50ad2 releasing 0.9.52 v0.9.52 2016-10-17 19:13:52 +02:00
Evgeny Grin (Karlson2k) 0724b181bd Simplify portability by using MHD_recv_() wrapper macro 2016-10-17 17:22:31 +03:00
Evgeny Grin (Karlson2k) fa6909d5e1 Simplify portability by using MHD_send_() wrapper macro 2016-10-17 17:22:30 +03:00
Evgeny Grin (Karlson2k) 554018347f Fixed incorrect recv() flag 2016-10-17 17:22:30 +03:00
Christian Grothoff d9312296fd fix more clang warnigns 2016-10-17 16:00:12 +02:00
Christian Grothoff 9b7bc3d8bd fix clang warnings 2016-10-17 15:49:22 +02:00
Christian Grothoff 79309bb602 removing dead semaphore logic 2016-10-17 15:37:16 +02:00
Christian Grothoff 71f2285bff implement early thread-termination for upgraded HTTP connections logic 2016-10-17 15:34:42 +02:00
Christian Grothoff dc9b5154ae add test logic to check that callbacks are invoked properly (and from the right thread), fix when callbacks are invoked where issues exist 2016-10-17 14:38:38 +02:00
Christian Grothoff 9b4146730b do not call notify closed twice 2016-10-17 14:07:24 +02:00
Christian Grothoff e3aee92d56 get test_upgrade_ssl to pass again 2016-10-17 13:50:27 +02:00
Christian Grothoff 599561d60c fix test_ugprade test, who put the && instead of & all over the place... 2016-10-17 10:43:20 +02:00
Christian Grothoff 71806e71a6 remove bogus NULL check (this function must never be called with a NULL argument), rename as it is not static 2016-10-17 10:21:40 +02:00
Christian Grothoff 36d3808c1e clean up leftovers in upgrade documentation 2016-10-17 10:16:42 +02:00
Evgeny Grin (Karlson2k) 22a5fb5239 upgrade: fixed double-free, fixed use-after-free 2016-10-17 01:24:16 +03:00
Christian Grothoff 5b2a9f1cbd improve upgrade documentation to clarify what the application can or cannot do on the socket 2016-10-16 15:06:43 +02:00
Evgeny Grin (Karlson2k) 513f49394e MHD_cleanup_connections(): reduce time of lock 2016-10-14 17:47:21 +03:00
Evgeny Grin (Karlson2k) a90099030e Remove leftover "linux only" on epoll fd. 2016-10-14 16:54:23 +03:00
Evgeny Grin (Karlson2k) 56cccc6da2 epoll FD is not MHD_socket type, adjust and unify usage 2016-10-14 16:50:18 +03:00
Evgeny Grin (Karlson2k) 947ab9361f Simplified .gitignore 2016-10-13 13:34:36 +03:00
Evgeny Grin (Karlson2k) 85e5e38ea6 Always use 'struct' for ITC.
Help to detect accidental incorrect usage.
2016-10-13 13:14:58 +03:00
Christian Grothoff 06867e0f11 do not deprecate so quickly, otherwise we get compilation issues 2016-10-12 22:25:52 +02:00
Christian Grothoff d2a7648847 add more generated files to be ignored by Git 2016-10-12 18:31:08 +02:00
Christian Grothoff b64ee71fd5 eliminating dead base64_chars array 2016-10-12 17:57:33 +02:00
Christian Grothoff 8424c8fb20 update README to reflect that Upgrade is now supported 2016-10-12 14:45:54 +02:00
Christian Grothoff 1218e0e1f0 migrating to Git 2016-10-12 14:32:47 +02:00
Christian Grothoff 9924fd6aa2 update changelog 2016-10-11 16:10:39 +00:00
Christian Grothoff ef7fe75ff2 deprecate USE_SSL for USE_TLS, rename in code 2016-10-11 16:09:17 +00:00