-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathChangeLog
More file actions
2475 lines (1948 loc) · 86.3 KB
/
ChangeLog
File metadata and controls
2475 lines (1948 loc) · 86.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
Thu Jul 13 21:41:00 MSK 2017
Restored SIGPIPE suppression in TLS mode.
Added new value MHD_FEATURE_AUTOSUPPRESS_SIGPIPE so application could
check whether SIGPIPE handling is required.
Used GNUTLS_NONBLOCK for TLS sessions. -EG
Tue Jun 20 23:52:00 MSK 2017
Libgcrypt is now optional and required only for old GnuTLS versions. -EG
Wed Jun 14 21:42:00 MSK 2017
Added support for debug assert() and new configure parameter
--enable-asserts for debug builds.
Removed non-functional Symbian support. -EG
Mon Jun 05 23:34:00 MSK 2017
More internal refactoring:
merged MHD_tls_connection_handle_read/write() with non-TLS version,
reduced and unified number of layers for network processing (before
refactoring MHD_tls_connection_handle_read->MHD_connection_handle_read->
do_read->recv_tls_adapter->GnuTLS->recv_param_adapter - 5 MHD layers;
after refactoring MHD_connection_handle_read->recv_tls_adapter->GnuTLS -
2 MHD layers),
simplified and removed dead code from
MHD_connection_handle_read/write() without functional change. -EG
Mon Jun 05 22:20:00 MSK 2017
Internal refactoring:
used TCP sockets directly with GnuTLS (performance improvement),
moved some connection-related code from daemon.c to
connection.c/connection_https.c,
removed hacks around sendfile() and implemented correct support of
sendfile(),
removed do_read() and do_write() to reduce number of layer around send()
and recv() and to improve readability and maintainability of code,
implemented separate tracking of TLS layer state, independent of HTTP
connection stage. -EG
Sun Jun 04 15:02:00 MSK 2017
Improved thread-safety of MHD_add_connection() and
internal_add_connection(), minor optimisations. -EG
Sun May 28 23:26:00 MSK 2017
Releasing GNU libmicrohttpd 0.9.55. -EG
Sun May 21 18:48:00 MSK 2017
Fixed build with disabled "UPGRADE".
Fixed possible null-dereference in HTTPS test.
Fixed compiler warning in process_request_body(), minor optimizations.
Do not allow suspend of "upgraded" connections.
Fixed returned value for MHD_CONNECTION_INFO_CONNECTION_SUSPENDED.
Fixed removal from timeout lists of non-existing connections in
cleanup_connection().
Fixed double locking of mutex. -EG
Sun May 14 15:05:00 MSK 2017
Fixed resuming connections and closing upgraded connections in select()
mode with thread-per-connection. -EG
Sun May 14 14:49:00 MSK 2017
Removed extra call to resume connections in MHD_run().
Handle resumed connection without delay in epoll mode.
Update states of resumed connection after resume in thread-per-connection
mode.
Fixed resuming connections and closing upgraded connections in poll()
mode with thread-per-connection. -EG
Thu May 11 22:37:00 MSK 2017
Faster start really processing data in resumed connections. -EG
Thu May 11 14:24:00 MSK 2017
Do not add any "Connection" headers for "upgrade" connections. -EG
Wed May 10 23:09:00 MSK 2017
Resume resuming connection before other processing in external polling
mode. -EG
Tue May 9 23:16:00 MSK 2017
Fixed: Do not add "Connection: Keep-Alive" header for "upgrade"
connections. -EG
Tue May 9 21:01:00 MSK 2017
Fixed: check all "Connection" headers of request for "Close" and "Upgrade"
tokens instead of using only first "Connection" header with full string
match. -EG
Tue May 9 12:28:00 MSK 2017
Revert: continue match footers in MHD_get_response_header() for backward
compatibility. -EG
Mon May 8 19:30:00 MSK 2017
Fixed: use case-insensitive matching for header name in
MHD_get_response_header(), match only headers (not footers). -EG
Fri May 5 20:57:00 MSK 2017
Fixed null dereference when connection has "Upgrade" request and
connection is not upgraded. -JB/EG
Better handle Keep-Alive/Close. -EG
Tue May 2 18:37:53 CEST 2017
Update manual. -CG
Add MHD_CONNECTION_INFO_REQUEST_HEADER_SIZE.
Releasing GNU libmicrohttpd 0.9.54. -CG
Thu Apr 27 22:31:00 CEST 2017
Replaced flags MHD_USE_PEDANTIC_CHECKS and MHD_USE_PERMISSIVE_CHECKS by
single option MHD_OPTION_STRICT_FOR_CLIENT. Flag MHD_USE_PEDANTIC_CHECKS
is still supported. -EG
Tue Apr 26 15:11:00 CEST 2017
Fixed shift in HTTP reasons strings.
Added test for HTTP reasons strings. -EG
Tue Apr 25 19:11:00 CEST 2017
Allow flag MHD_USE_POLL with MHD_USE_THREAD_PER_CONNECTION and without
flag MHD_USE_INTERNAL_POLLING_THREAD for backward compatibility. -EG
Mon Apr 24 17:29:45 CEST 2017
Enforce RFC 7230's rule on no whitespace by default,
introduce new MHD_USE_PERMISSIVE_CHECKS to disable. -CG
Sun Apr 23 20:05:44 CEST 2017
Enforce RFC 7230's rule on no whitespace in HTTP header
field names if MHD_USE_PEDANTIC_CHECKS is set. -CG
Sun Apr 23 19:20:33 CEST 2017
Replace remaining occurences of sprintf() with
MHD_snprintf_(). Thanks to Ram for pointing this out. -CG
Sat Apr 22 20:39:00 MSK 2017
Fixed builds in Linux without epoll.
Check for invalid --with-thread= configure parameters.
Fixed support for old libgcrypt on W32 with W32 threads. -EG
Tue Apr 11 22:17:00 MSK 2017
Releasing GNU libmicrohttpd 0.9.53. -EG
Mon Apr 10 19:50:20 MSK 2017
HTTPS tests: skip tests instead of failing if HTTPS is not supported by
libcurl.
HTTPS tests: fixed return values so testsuite is able to correctly
interpret it.
Fixed ignored result of epoll test in test_https_get_select. -EG
Thu Apr 06 23:02:07 MSK 2017
Make zzuf tests compatible with *BSD platforms. -EG
Thu Apr 06 22:14:22 MSK 2017
Added warning for hypothetical extra large timeout.
Fixed incorrect timeout calculation under extra rare conditions.
Fixed accidental usage of IPv6 in testsuite in specific conditions. -EG
Wed Apr 05 14:14:22 MSK 2017
Updated autoinit_funcs.h to latest upstream version with proper support of
Oracle/Sun compiler. -EG
Wed Apr 05 12:53:26 MSK 2017
Fixed some compiler warnings.
Fixed error snprintf() errors detection in digestauth.c.
Converted many run-time 'strlen()' to compile-time calculations. -EG
Sun Mar 26 13:49:01 MSK 2017
Internal refactoring for simplification and unification.
Minor optimizations and minor fixes.
MHD_USE_ITC used again in thread pool mode. -EG
Sat Mar 25 20:58:24 CET 2017
Remove dead MHD_strx_to_sizet-functions and associated
test cases from code. -CG
Sat Mar 25 20:40:10 CET 2017
Allow chunk size > 16 MB (up to 2^64-1). Ignore
chunk extensions instead of triggering an error.
(fixes #4967). -CG
Tue Mar 25 20:59:18 MSK 2017
Check for invalid combinations of flags and options in
MHD_start_daemon(). -EG
Tue Mar 21 13:51:04 CET 2017
Use "-lrt" to link libmicrohttpd if we are using
clock_gettime() as needed by glibc < 2.17. -CG
Tue Mar 21 13:42:07 CET 2017
Allow chaining of suspend-resume calls withuot
the application processing data from the network. -CG
Mon Mar 20 0:51:24 MSK 2017
Added autoconf module for detection whatever shutdown of listening socket
trigger select. This is only reliable method to use such feature as some
platforms change behaviour from version to version. -EG
Sun Mar 19 13:57:30 MSK 2017
Rewritten logic of handling "upgraded" TLS connections in epoll mode:
used edge trigger instead of level trigger,
upgraded "ready" connection are stored in DL-list,
fixed handling of more than 128 ready connections,
fixed busy-waiting for idle "upgraded" TLS connections. -EG
Fri Mar 17 10:45:31 MSK 2017
If read buffer is full, MHD need to receive remote data and application
suspended connection, do not fail while connection is suspended and give
application one more chance to read data from buffer once connection is
resumed. -EG
Thu Mar 16 23:45:29 MSK 2017
Allow again to run MHD in external epoll mode by
MHD_run_from_select() - this allow unification of user code
and produce no harm for performance. Especially useful with
MHD_USE_AUTO flag. -EG
Thu Mar 16 23:12:07 MSK 2017
Idle connection should be disconnected *after* "timeout" number of
second, not *before* this number. -EG/VT
Thu Mar 16 22:31:54 MSK 2017
Unified update of last activity on connections.
Update last activity only if something is really transmitted.
Update last activity each time when something is transmitted.
Removed early duplicated check for timeout on HTTPS connections.
Removed update of last active time for connections without timeout.
Fixed reset of timeout timer on resumed connections.
Fixed never-expired timeouts on HTTPS connections.
Fixed thread-safety of MHD_set_connection_option(). -EG
Thu Mar 16 21:05:08 MSK 2017
Fixed minor bug resulted in slight slowdown of HTTPS connection
handshake. -EG
Thu Mar 16 20:35:59 MSK 2017
Improved thread-safety for DL-lists. -EG
Thu Mar 16 17:55:01 MSK 2017
Fixed thread-safety of MHD_get_daemon_info() for
MHD_DAEMON_INFO_CURRENT_CONNECTIONS. -EG
Thu Mar 16 16:49:07 MSK 2017
Added ability to get actual daemon flags via MHD_get_daemon_info().
Fixed test_upgrade to work in request mode.
Fixed compiler warnings in test_upgrade. -EG
Wed Mar 15 23:29:59 MSK 2017
Prevented socket read/write if connection is suspended.
Added missing resets of 'connection->in_idle'.
Reworked handling of suspended connection: ensure that
connection is not disconnected by timeout, always
updated read/write states right after suspending. -EG
Wed Mar 15 21:02:26 MSK 2017
Added new enum value MHD_CONNECTION_INFO_CONNECTION_TIMEOUT
to get connection timeout by MHD_get_connection_info(). -EG
Sat Mar 11 12:03:45 CET 2017
Fix largepost example from tutorial to properly generate
error pages. -CG
Fix largepost example, must only queue replies either before upload
happens or after upload is done, not while upload is ongoing
Fri Mar 10 16:37:12 CET 2017
Fix hypothetical integer overflow for very, very large
timeout values. -CG
Fri Mar 10 16:22:54 CET 2017
Handle case that we do not listen at all more gracefully
in MHD_start_daemon() and not pass '-1' to helper functions
that expect a valid socket. -CG
Tue Mar 7 12:11:44 BRT 2017
Updates file `.gitignore`.
Tue Mar 7 10:37:45 BRT 2017
Updated the MHD_OPTION_URI_LOG_CALLBACK's documentation.
Mon Mar 6 21:46:59 BRT 2017
Added the i18n example fixing #4924. -SC
Wed Mar 1 23:47:05 CET 2017
Minor internal optimisations.
Changed closure connection monitoring logic: now all connections are
monitored for OOB data (which treated as error), connections are not
monitored any more for incoming data if incoming data is not required for
processing. except_fd_set is not optional now for MHD_get_fdset(),
MHD_get_fdset2() and MHD_run_from_select().
Improved connection processing in epoll mode: now connection can process
both read and write each turn.
Updated HTTP response codes; updated and added all missing standard HTTP
headers names (and headers categories); updated and added all missing
standard and additional HTTP methods. Now MHD return status
MHD_HTTP_REQUEST_HEADER_FIELDS_TOO_LARGE (431) instead of old
MHD_HTTP_REQUEST_ENTITY_TOO_LARGE (413) for very long header.
Reworked handling of data pending in TLS buffers, resolved busy-waiting
if incoming data is pending in TLS buffers and connection is in
LOOP_INFO_WRITE mode.
Do not clear 'ready' flag in epoll mode if send()/recv() result is
EINTERRUPTED.
Better detection of unready connection state: used less number of calls of
recv()/send() in epoll mode.
Configure: do not run gcrypt and GnuTLS tests if HTTPS is disabled by
configure parameter.
Fixed wrong value returned by MHD_get_timeout().
All double-linked lists now walked from tail to head. As new items are
added to head, this result in more uniform processing time.
Improved sockets errors handling in epoll mode.
OOB data on 'upgraded' sockets is treated as error. -EG
Thu Feb 16 11:20:05 CET 2017
Replace tsearch configure check with code from gnulib. -CG
Wed Feb 15 13:35:36 CET 2017
Fixing a few very rare race conditions for thread-pool or
thread-per-connection operations during shutdown.
Various minor cosmetic improvements.
Fixed #4884 and #4888 (solaris portability issues). -CG
Wed Feb 08 22:33:10 MSK 2016
Ported test_quiesce_stream to W32.
Improved precompiler flags selection of OpenBSD.
Fixed sending responses backed by files not supported by sendfile().
Fixed thread safety for responses backed by file FD.
Updated fileserver_example.
Improved handling of 'upgraded' TLS forwarding in select() and poll()
modes.
Fixed processing of incoming TLS data in epoll mode if more than 128
connections are active.
Fixed accepting more than 128 incoming connection in epoll mode.
Improved test_large_put, added poll() and epoll testing.
Added test_large_put_inc for testing of incremental buffer processing.
Rewritten epoll connection processing logic: handle all connection one
time per turn instead of trying to handle all active connection until all
pending data is dried. Result is more uniform connection processing
period. -EG
Wed Nov 23 15:24:10 MSK 2016
Used SO_REUSEADDR (on non-W32) alongside with SO_REUSEPORT if option
MHD_OPTION_LISTENING_ADDRESS_REUSE was set. -EG
Wed Nov 23 12:48:23 MSK 2016
Move all gettext-related staff to 'po' subdirectory.
Excluded gettext files generation from normal build.
Removed generated files from GIT. -EG
Tue Nov 15 19:08:43 MSK 2016
Fixed forwarding "upgraded" TLS connections for
chunks sizes larger than buffer size. -EG
Mon Nov 14 22:18:30 MSK 2016
Fixed unintentional usage of SO_REUSEADDR on W32.
Added support for SO_EXCLBIND on Solaris.
Fixed using MHD with MHD_OPTION_LISTENING_ADDRESS_REUSE
on Linux kernels before 3.9 (longterm 3.2 and 3.4
are still supported). -EG
Sun Nov 13 19:16:38 CET 2016
Fixed a few race issues on suspend-resume in cases where the
application uses threads even though MHD did not (or at least
had no internal need for locking). Also fixed DLL handling of
the timeout list, avoiding manipulating it for suspended
connections. Finally, eliminated calling application logic
on suspended connections (which before could happen under
certain circumstances). -CG
Thu Nov 11 20:49:23 MSK 2016
Added support for various forms of
pthread_attr_setname_np() so thread names will be set
more efficiently on certain platforms (Solaris, NetBSD etc.) -EG
Thu Nov 10 21:50:35 MSK 2016
Added rejection in MHD_start_daemon() of invalid combinations
of daemon flags.
Added MHD_USE_AUTO and MHD_USE_AUTO_INTERNAL_THREAD for
automatic selection of polling function depending on
platform capabilities and requested mode. -EG
Thu Nov 10 17:49:56 MSK 2016
Ported "upgrade" tests to W32 and other platforms, used
"gnutls-cli" instead of "openssl" in tests, minor bugs
fixed, added verbose reporting if requested.
"Upgrade" processing - changed internal handling logic, improved
and refactored, bugs fixed, fixed sigpipe on Darwin, added
printing error to log, fixed compilation without HTTPS.
Added 'configure' parameter "--disable-httpupgrade" for building
minimal-sized MHD versions.
Added feature check "MHD_FEATURE_UPGRADE".
Responses destroyed (freed) earlier if possible.
Added many remarks in code comments about thread safety.
Some data races and other multithread-related issues are fixed,
including usage of closed sockets (may resulted in accidental closing
of wrong socket).
SO_NOSIGPIPE is used on all platform which support it, not only
on Darwin.
Added support for suspending connections in thread-per-connection
mode (itself almost useless, mostly to unify modes support).
Fixed Inter-Thread Communication channel usage in epoll modes.
Reworked daemon cleanups and handling MHD_stop_daemon(): resources
are freed only by specific threads, data races and other fixes.
Started usage of C99 standard 'bool' where supported with
fallback to 'int'.
Renamed many MHD flags. Now they are self-explainable and more
obvious, like MHD_USE_INTERNAL_POLLING_THREAD instead of
MHD_USE_SELECT_INTERNALLY. Old flag names are supported for
backward compatibility.
Improved processing of "fast" connections: now full sequence
"read request - send reply headers - send reply body" is processed
after single select()/poll(). If connection is slow, request is huge
or response in not immediately ready - connection will be processed
in "traditional" way.
Added usage of "calloc()" where supported.
Minor documentation fixes.
Minor improvements and fixes. -EG
"Upgrade" test fixes.
Documentation updated.
Added HTTP "Upgrade" example. -CG
Mon Oct 17 19:08:18 CEST 2016
Fixed misc. issues relating to upgrade.
Releasing experimental 0.9.52. -CG
Wed Oct 12 14:26:20 CEST 2016
Migrated repository from Subversion to Git. -CG
Tue Oct 11 18:09:56 CEST 2016
Deprecated MHD_USE_SSL, use MHD_USE_TLS instead. -CG
Tue Oct 11 18:14:40 MSK 2016
Code internal refactoring: 'pipes' renamed to 'inter-thread
communication (channels)/ITCs', as code can use different types
of communications.
Optimizations: ITCs now always created in non-blocking mode.
Added configure parameter to choose ITC type.
Updated documentation and comments.
Minor errors fixed (related to heavy load). -EG
Thu Sep 22 17:51:04 CEST 2016
Implementing support for eventfd() instead of pipe() for
signaling (on platforms that support it); fixing #3557. -CG
Thu Sep 22 11:03:43 CEST 2016
Simplify internal error handling logic by folding it into the
MHD_socket_close_, MHD_mutex_lock_, MHD_mutex_unlock_ and
MHD_mutex_destroy_ functions. -CG
Tue Sep 13 22:20:26 MSK 2016
Added autoconf macro to enable maximum platform
features. Fixed compiling on Solaris. -EG
Wed Sep 7 12:57:57 CEST 2016
Fixing #4641. -Hawk
Wed Sep 7 00:28:59 CEST 2016
Adding remaining "_"-markups for i18n (#4614). -CG
Tue Sep 6 23:39:56 CEST 2016
Allow out-of-order nonces for digest authentication (#4636). -CG
Tue Sep 6 21:29:09 CEST 2016
Martin was right, "socket_context" should be "void *"
in `union MHD_ConnectionInfo`. -MS
Sun Sep 4 18:16:32 CEST 2016
Fixing potential memory leak (#4634). -CG
Sun Sep 4 17:25:45 CEST 2016
Tests for "Upgrade" logic are now in place and passing.
However, still need to make sure code is portable. -CG
Sat Sep 3 11:56:20 CEST 2016
Adding logic for handling HTTP "Upgrade" in thread-per-connection
mode. Also still untested. -CG
Sat Aug 27 21:01:43 CEST 2016
Adding a few extra safety checks around HTTP "Upgrade"
(against wrong uses of API), and a testcase. -CG
Sat Aug 27 20:07:53 CEST 2016
Adding completely *untested* logic for HTTP "Upgrade"
handling. -CG
Sat Aug 27 18:20:38 CEST 2016
Releasing libmicrohttpd 0.9.51. -CG
Tue Aug 23 22:54:07 MSK 2016
Internal refactoring: W32 compatibility layer was finally
replaced with several specialized abstraction layers for
sockets, control pipes (inter-thread communication) and
generic functions. Now all major platform functions
(including threads and mutex) are implemented in thin
abstraction layers.
Improved performance on W32 due to eliminating
translation of error to POSIX codes and using W32 codes
directly (through macros).
Improved error reporting on all platforms.
Improved error handling and reporting on Darwin.
Minor fixes. -EG
Tue Aug 16 15:14:30 MSK 2016
Minor improvement for monotonic clock.
Minor configure fix for non-bash shells. -EG
Mon Aug 15 13:06:52 CEST 2016
Fixed possible crash due to write to read-only region of
memory given ill-formed HTTP request (write was otherwise
harmless, writing 0 to where there was already a 0).
Fixed issue with closed connection slots not immediately
being available again for new connections if we reached
our connection limit.
Avoid even accept()ing connections in certain thread modes
if we are at the connection limit and
MHD_USE_PIPE_FOR_SHUTDOWN is available. -CG
Wed Aug 10 16:42:57 MSK 2016
Moved threads, locks and mutex abstraction to separate files,
some minor errors fixed, added support for thread name functions
on various platforms, added configure flag for disable thread
naming. -EG
Sat Jul 23 20:45:51 CEST 2016
Added macro detection of speed/size compiler optimization.
Added different implementation of functions in mhd_str.c for
size optimization. Enabled automatically if compiler size
optimization is detected or MHD_FAVOR_SMALL_CODE is defined.
Added unit tests for all mhd_str.c functions. -EG
Sat Jul 16 21:54:49 CEST 2016
Warn user if they sent connection into blocking
state by not processing all POST data, not suspending,
and not running in external select mode. -CG
Fri Jul 8 21:35:07 CEST 2016
Fix FIXME in tutorial. -CG
Fri Jul 8 15:57:06 CEST 2016
Adding support for 308 status code. -CG
Sat Jun 25 13:49:31 CEST 2016
Use shutdown to trigger select on NetBSD. -EG
Thu Jun 2 09:55:50 CEST 2016
Releasing libmicrohttpd 0.9.50. -CG
Wed Jun 1 21:59:34 CEST 2016
Do not send "Content-Length" header for 1xx/204/304 status codes. -CG
Tue May 17 13:32:21 CEST 2016
Allow clients to determine whether a connection is suspended;
introduces MHD_CONNECTION_INFO_CONNECTION_SUSPENDED. -CG/FC
Sun May 15 12:17:25 CEST 2016
Fix handling system or process resource limit exhaustion upon
accept(). -CG/CP
Thu May 12 08:42:19 CEST 2016
Fix handling of partial writes in MHD_USE_EPOLL_LINUX_ONLY; only
consider sockets returning EAGAIN as unready. -CG/CP
Mon May 2 06:08:26 CEST 2016
Adding logic to help address FE performance issue as
discussed on the mailinglist with subject
"single-threaded daemon, multiple pending requests, responses batched".
The new logic is only enabled when MHD_USE_EPOLL_TURBO is set.
Note that some additional refactoring was also done to clean up
the code and avoid code duplication, which may have actually fixed
an unrelated issue with HTTPS and a POLL-style event loop. -CG
Sat Apr 30 10:22:37 CEST 2016
Added clarifications to manual based on questions on list. -CG
Sat Apr 23 20:12:01 CET 2016
Tests perf_get_concurrent and test_concurrent_stop ported to use
pthread instead of fork(). Added more error detections. -EG
Sat Apr 23 16:06:30 CET 2016
Improved test_quiesce test. -EG
Sat Apr 23 15:39:38 CET 2016
Notify other threads in MHD_quiesce_daemon() so listen socket FD
is removed from awaiting select() and poll(). -EG
Sat Apr 23 14:17:15 CET 2016
Revert "shutdown trigger select" on Darwin. Fixed daemon shutdown
on Darwin without "MHD_USE_PIPE_FOR_SHUTDOWN" option. -EG
Fri Apr 22 14:29:28 CET 2016
Fixed race conditions when stopping quiesced daemon with thread
pool. -EG
Wed Apr 20 18:12:30 CET 2016
Fixed macros in sysfdsetsize.c which could prevent compiling with
non-default FD_SETSIZE.
Fixed comments in mhd_str.c.
Updated test_post.c to not ignore specific error on W32 if libcurl
is built with workaround for WinSock bug. -EG
Mon Apr 18 19:35:14 CET 2016
Fixed data races leading to inability in rare situations to
resume suspended connection. -EG
Tue Apr 13 21:46:01 CET 2016
Removed unneeded locking for global timeout list in
MHD_USE_THREAD_PER_CONNECTION mode.
Added 'simplepost' and 'largepost' examples to VS projects.
Added strtoXX() locale-independent replacement functions.
Added more error checking and minor fixes in digest auth
functions - should improve security.
Ignored specific errors in 'test_post' test until libcurl
will implement workaround for WinSock bug.
Fixed handling of caller-supplied socket with
MHD_OPTION_LISTEN_SOCKET (regression in 0.9.49).
Minor fixes.
Various cosmetics and comments fixes. -EG
Sat Apr 09 13:05:42 CET 2016
Releasing libmicrohttpd 0.9.49. -EG
Fri Apr 08 18:32:17 CET 2016
Some minor internal fixes, addition error checking and
micro optimizations.
Reworked usage of sockets shutdown() - now work equally
on all platforms, disconnection should be "more graceful". -EG
Tue Mar 15 21:52:27 CET 2016
Do not crash if pthread_create() fails. -DD
Tue Mar 15 20:29:34 CET 2016
Do not use eready DLL data structure unless
we are actually using epoll(). -DD/CG
Fri Feb 5 20:43:11 CET 2016
Fixed testsuite compile warning on W32.
Added check test for triggering poll() on
listen socket. -EG
Thu Feb 4 11:38:11 CET 2016
Added some buffer overrun protection.
Fixed handling of misformed URI with spaces. -EG
Wed Feb 3 15:41:57 CET 2016
Make signal-pipe non-blocking and drain it. -CG
Sat Jan 30 15:49:07 CET 2016
Fix running select() with empty fdsets on W32. -EG
Mon Jan 25 13:45:50 CET 2016
Added check test for triggering select() on
listen socket. -EG
Thu Jan 21 19:35:18 CET 2016
Fixed old bug with making sockets non-blocking on
various platforms so now sockets are really
non-blocking on all supported platforms.
Reworked and fixed code for using SOCK_CLOEXEC,
SOCK_NONBLOCK and EPOLL_CLOEXEC resulting in
fewer used system calls. -EG
Tue Jan 19 20:59:59 CET 2016
Cleaned up and optimized with minor fixes code for
making sockets non-blocking non-inheritable. -EG
Tue Jan 19 11:14:18 CET 2016
Removed workaround for Cygwin non-blocking sockets:
handling non-blocking sockets were fixed in Cygwin
and libmicrohttpd how uses non-blocking sockets on
all platforms. -EG
Mon Jan 18 23:54:45 CET 2016
Cleaned up examples to avoid giving oversimplified code
that may lead to complications if adopted naively. -CG
Sun Jan 17 11:18:55 CET 2016
Do no refuse to send response if sendfile() failed with
EINVAL (common error for files located on SMB/CIF). -EG
Sat Jan 16 19:14:39 CET 2016
Use US-ASCII only (instead of user locale settings) when
performing caseless string comparison as required by
standard. -EG
Tue Jan 12 16:10:09 CET 2016
Fixed declaraion of MHD_get_reason_phrase_for(). -EG
Mon Jan 11 19:58:50 CET 2016
Configure.ac small fixes and refactoring. -EG
Fri Dec 18 15:54:50 CET 2015
Releasing libmicrohttpd 0.9.48. -CG
Tue Dec 15 18:35:55 CET 2015
Improved compatibility with VS2010 and other older
compilers. -EG
Tue Dec 8 21:48:44 CET 2015
Default backlog size for listen socket was changed from
32 to SOMAXCONN, added new option MHD_OPTION_LISTEN_BACKLOG_SIZE
to override default backlog size.
If not all connections can be handled by MHD_select() than
at least some of connections will be processed instead of
failing without any processing.
Fixed redefenition of FD_SETSIZE on W32 so select() will
work with 2000 connections instead of 64.
Better handled redefenition of FD_SETSIZE on all
platforms. -EG
Sat Dec 5 17:30:45 CET 2015
Close sockets more aggressively in multi-threaded
mode (possibly relevant for idle servers). -CG
Fri Dec 4 13:53:05 CET 2015
Releasing libmicrohttpd 0.9.47. -CG
Thu Dec 3 18:21:44 CET 2015
Reworked VS project files. Used x64 build tools by
default, many optimizations, fixes.
Added project files for VS 2015. -EG
Tue Dec 1 14:05:13 CET 2015
SPDY is dead, killing experimental libmicrospdy. -CG
Tue Dec 1 10:01:12 CET 2015
New logic for controlling socket buffer modes.
Eliminated delay before last packet in response and before
"100 Continue" response on all platforms. Also response
header are pushed to client without waiting for response
body. -EG
Wed Nov 25 17:02:53 CET 2015
Remove 200ms delay observable with keep-alive on Darwin
and *BSD platfroms. -EG
Tue Nov 10 15:25:48 CET 2015
Fix issue with shutdown if connection was resumed just
before shutdown. -FC
Fri Nov 6 22:54:38 CET 2015
Fixing the buffer shrinkage issue, this time with test. -CG
Releasing libmicrohttpd 0.9.46. -CG
Tue Nov 3 23:24:52 CET 2015
Undoing change from Sun Oct 25 15:29:23 CET 2015
as the original code was counter-intuitive but
correct, and the new code does break pipelining.
Ignore empty lines at the beginning of an HTTP
request (more tolerant implementation). -CG
Sat Oct 31 15:52:52 CET 2015
Releasing libmicrohttpd 0.9.45. -CG
Tue Oct 27 12:08:02 CET 2015
Rework deprecation maros: fix errors with old GCC versions,
improved support for old clang and new GCC. -EG
Sun Oct 25 23:05:32 CET 2015
Return correct header kind in MHD_get_connection_values()
even if a bitmask is used for the "kind" argument. -FC/CG
Sun Oct 25 15:29:23 CET 2015
Fixing transient resource leak affecting long-lived
connections with many keep-alives and HTTP request
pipelining under certain circumstances (which reduced
the receive window).
Fixed assertion failure triggered by a race in
thread-per-connection mode on shutdown in rare
circumstances. -CG
Mon Oct 5 11:53:52 CEST 2015
Deduplicate code between digestauth and connection
parsing logic for URI arguments, shared code moved
to new MHD_parse_arguments_ function in internal.c. -CG
Thu Oct 1 21:22:05 CEST 2015
Releasing libmicrohttpd 0.9.44. -CG
Wed Sep 30 21:05:38 CEST 2015
Various fixes for W32 VS project files. -EG
Fri Sep 25 09:49:10 CEST 2015
Fix digest authentication with URL arguments where
value-less keys are given before the last argument.
Thanks to MA for reporting. -CG
Tue Sep 22 19:17:54 CEST 2015
Do not use shutdown() on listen socket if MHD_USE_PIPE_FOR_SHUTDOWN
is set. -CG
Wed Sep 16 11:06:02 CEST 2015
Releasing libmicrohttpd 0.9.43. -CG
Wed Sep 2 16:50:31 CEST 2015
Call resume_suspended_connections() when the user is running
its own mainloop and calls MHD_run_from_select() to support
resuming connections with external select. -FC
Sun Aug 30 14:53:51 CEST 2015
Correct documentation as to when MHD_USE_EPOLL_LINUX_ONLY
is allowed. -CG
Thu Aug 27 09:38:44 CEST 2015
Reimplement monotonic clock functions for better
support various platforms.
Print more information during configure. -EG
Fri Aug 14 14:13:55 CEST 2015
Export MHD_get_reason_phrase_for() symbol. -CG
Sat Aug 8 12:19:47 CEST 2015
Added checks for overflows and buffer overruns, fixed
possible buffer overrun.
Updated md5 implementation.
Fixed many compiler warning (mostly for VC compiler). -EG
Tue Aug 4 13:50:23 CEST 2015
Fix failure to properly clean up timed out connections
if running in external select mode without listen socket,
which caused busy waiting until new connections arrived.
(Fixes #3924, thanks to slimp for reporting and testcase). -CG
Sun Aug 2 19:08:20 CEST 2015
Ignore close() errors on sockets except for EBADF,
fixes #3926. -CG
Sat Jun 27 22:16:27 CEST 2015
Make sure to decrement connection counter before
calling connection notifier so that
MHD_DAEMON_INFO_CURRENT_CONNECTIONS does not
present stale information (relevant if this is
used for termination detection of a daemon
stopped via MHD_quiesce_daemon()). Thanks to
Markus Doppelbauer for reporting. -CG
Fri Jun 26 23:17:20 CEST 2015
Fix (automatic) handling of HEAD requests with
MHD_create_response_from_callback() and HTTP/1.1
connection keep-alives. Thanks to Cristian Klein
for reporting. -CG
Tue Jun 09 18:30:17 CEST 2015
Add new functions MHD_create_response_from_fd64() and
MHD_create_response_from_fd_at_offset64(). -EG
Thu Jun 4 13:37:05 CEST 2015
Fixing memory leak in digest authentication. -AW
Wed Jun 03 21:23:47 CEST 2015
Add deprecation compiler messages for deprecated functions
and macros. -EG
Fri May 29 12:23:01 CEST 2015
Fixing digest authentication when used in combination
with escaped characters in URLs. -CG/AW
Wed May 13 11:49:09 CEST 2015
Releasing libmicrohttpd 0.9.42. -CG
Wed May 13 11:33:59 CEST 2015
Fix off-by-one in MHD_start_daemon_va() error handling logic
when initialization of threads for thread pool fails for some
reason. -CG/JC
Thu May 7 17:05:46 CEST 2015
Add support for poll() in W32. -EG
Wed May 6 18:07:38 CEST 2015
Fix #3784: actually implement MHD_CONNECTION_INFO_SOCKET_CONTEXT. -asherkin
Thu Apr 30 00:03::49 CEST 2015
Releasing libmicrohttpd 0.9.41. -CG
Thu Apr 30 00:02:33 CEST 2015
Fix issue where resumed connections would not continue
unless other requests are active in certain
event-loop modes. Thanks to Mike Castillo for reporting. -CG
Wed Apr 15 03:16:18 CEST 2015
Fixing issue #3753 (testcase issue). -CG
Wed Apr 15 00:30:34 CEST 2015
Fix looping issue when using MHD_USE_POLL_INTERNALLY
and a client times out. -LB
Sun Apr 12 21:48:50 CEST 2015
Fix looping issue when combining MHD_USE_EPOLL_LINUX_ONLY
with HTTPS and slow clients. -CG
Fri Apr 10 22:02:27 CEST 2015
Fix logic to add "Connection: Close" that was broken in 0.9.38
when adding MHD_RF_HTTP_VERSION_1_0_ONLY. -CG
Fri Apr 10 00:38:40 CEST 2015
Ensure fast termination in MHD_USE_THREAD_PER_CONNECTION
mode on W32 by using signal pipe. -CG
Thu Apr 9 09:01:15 CEST 2015
Fixing issue with undrained signal pipe when using
MHD_USE_SELECT_INTERNALLY and MHD_USE_POLL in combination
with MHD_resume_connection(), causing 100% CPU usage. -DD
Tue Apr 7 00:12:36 CEST 2015
Releasing libmicrohttpd 0.9.40. -CG
Sat Apr 4 18:28:24 CEST 2015
Fix potential deadlock issue in MHD_USE_THREAD_PER_CONNECTION
mode if shutdown is initiated while connections are active. -CG
Sat Apr 4 17:48:13 CEST 2015
Fix issue in thread-pool mode where a MHD_stop_daemon()
might not reach threads that stopped listening because
we hit the maximum number of concurrent connections and
the option MHD_USE_PIPE_FOR_SHUTDOWN was also not used.
Testcase added as well. -CG
Fri Apr 3 12:55:31 CEST 2015
Update HTTPS testcases to avoid SSLv3, as SSLv3 is dead.
Fri Apr 3 12:25:28 CEST 2015
Do not enforce FD_SETSIZE-limit on worker control
pipe when using MHD_USE_EPOLL_LINUX_ONLY (#3751). -MH/CG
Tue Mar 31 10:28:26 CEST 2015
Adding MHD_OPTION_NOTIFY_CONNECTION,
MHD_CONNECTION_NOTIFY_STARTED,
MHD_CONNECTION_NOTIFY_CLOSED and
MHD_CONNECTION_INFO_SOCKET_CONTEXT to allow
applications to trigger operations when TCP
connections start or end, instead of just
exposing HTTP requests starting and ending. -RG/CG
Thu Feb 26 09:55:43 CET 2015
Fixing bug that prevented MHD_OPTION_HTTPS_MEM_DHPARAMS
from working within a MHD_OPTION_ARRAY. -DD
Sun Feb 8 01:24:38 CET 2015
Adding MHD_OPTION_HTTPS_KEY_PASSWORD as proposed by
Andrew Basile. -CG/AB
Wed Feb 4 20:34:22 CET 2015
Fix issue where for HTTP/1.0-clients that set
Connection: Keep-Alive header a response of
indefinite size was generated with chunked encoding. -CG
Sun Jan 18 20:09:06 CET 2015
Fix potential infinite loop on shutdown in multi-threaded mode
under certain conditions. -CG
Mon Dec 22 16:33:18 CET 2014
Releasing 0.9.39. -CG
Mon Dec 22 13:02:36 CET 2014
Fix generated compiler flags for Solaris Studio linker (#3584). -CG
Sat Dec 20 00:35:40 CET 2014
Adding MHD_http_unescape() to public API (#3585). -CG
Updating documentation to document
MHD_is_feature_supported(). -CG
Thu Dec 4 00:43:10 CET 2014
If "Connection: upgrade" is requested, do not add
"Connection: Keep-Alive" in the response. -GJ
Tue Nov 18 13:52:29 CET 2014
Call MHD_cleanup_connections() during MHD_DAEMON_INFO_CURRENT_CONNECTIONS
processing for more accurate results. -MS
Wed Oct 29 20:45:21 CET 2014
Adding MHD_OPTION_LISTENING_ADDRESS_REUSE option allowing clients
to force allowing re-use of the address:port combination
(SO_REUSEPORT). -MS
Wed Oct 29 16:27:05 CET 2014
Adding MHD_DAEMON_INFO_CURRENT_CONNECTIONS to allow clients
to query the number of active connections. -MS
Fri Oct 3 14:28:58 CEST 2014
Releasing 0.9.38. -CG
Mon Sep 29 22:25:34 CEST 2014
Properly decode '+' in URL-encoded POST data. -CG/KM
Fri Sep 12 17:32:09 CEST 2014
Fix --disable-dauth configure option (#3543). -doostee
Thu Jun 26 21:06:04 CEST 2014
Fix failure to terminate 'instantly' in thread-per-connection
mode if there is a client with open connections.
Thanks to Kenneth Mastro for reporting. -CG
Sun Jun 22 12:22:08 CEST 2014
Actually, avoid locking on response as responses must
not be modified in a connection-specific way; instead
modify the connection's data buffer to add missing
responses headers. If we are forced to add
"Connection: close", suppress output of conflicting
application-provided "Connection: Keep-Alive" header. -CG
Sun Jun 22 00:22:08 CEST 2014
Lock on response if adding headers, needed if response
object is shared across threads and connections. -CG
Thu Jun 19 17:32:32 CEST 2014
Ensure that listen FD is bound to epoll FD even before
MHD_run() is called if running with MHD_USE_EPOLL_LINUX_ONLY
in combination with 'external select' mode. Thanks to
Marcos Pindado Sebastian for reporting. -CG