forked from libevent/libevent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ChangeLog
2162 lines (1862 loc) · 114 KB
/
ChangeLog
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
Changes in version 2.1.12-stable (05 Jul 2020)
This release contains mostly bug fixes (I decided not to port some features
that can be ported even without ABI breakage, if you cannot find feature that
you are interested in, please give us a note!)
Since 2.1.12 libevent will use github actions as main CI, since
it recommends itself better then travis/appveyor (and had been removed from
upstream).
Look carefully at "slightly touches the behaviour" section.
Below you will find some of changes (this list has been cleaned up from the
patches that touches only tests and similar):
CI:
o Backport github actions to 2.1 (be3acd7c Azat Khuzhin)
o Merge branch 'event_rpcgen.py-cleanup' (f0ded5f3, 48e04887 Enji Cooper)
o Add API/ABI checker (using LVC) (709210d4, 2af1f6cc yuangongji)
test:
o tinytest: support timeout on Windows (794e8f75 yuangongji)
o Merge branch 'osx-clock' (e85afbe3 Azat Khuzhin)
o test-ratelim: calculate timers bias (for slow CPUs) to avoid false-positive (8ad26d0b Azat Khuzhin)
fixes:
o buffer: do not pass NULL to memcpy() from evbuffer_pullup() (5b063049 Azat Khuzhin)
o http: fix undefined-shift in EVUTIL_IS*_ helpers (6b8d02a7 Azat Khuzhin)
o Check error code of evhttp_add_header_internal() in evhttp_parse_query_impl() (97e28f09 Azat Khuzhin)
o http: fix EVHTTP_CON_AUTOFREE in case of timeout (and some else) (1be25938 Azat Khuzhin)
o evdns: Add additional validation for values of dns options (c2972453 ayuseleznev)
o There is typo in GetAdaptersAddresses windows library. It should be iphlpapi.dll (891adda9 Aleksandr-Melnikov)
o Merge branch 'EV_CLOSED-and-EV_ET-fixes' (db2efdf5 Azat Khuzhin)
o Fix memory corruption in EV_CLOSURE_EVENT_FINALIZE with debug enabled (8ccd8f56 Jan Kasiak)
o increase segment refcnt only if evbuffer_add_file_segment() succeeds (30662a3c yuangongji)
o evdns: fix a crash when evdns_base with waiting requests is freed (6f8e0e97 ayuseleznev)
o event_base_once: fix potential null pointer threat (2e9ceb16 chenguolong)
o http: do not assume body for CONNECT (1b42270b Azat Khuzhin)
o evbuffer_add_file: fix freeing of segment in the error path (5f017bde Azat Khuzhin)
o Fix checking return value of the evdns_base_resolv_conf_parse() (fc51bf2c Azat Khuzhin)
o Merge branch 'fix-signal-leak' (poll/select now needs reinit) (1c9cc07b Azat Khuzhin)
improvements:
o evutil_time: improve evutil_gettimeofday on Windows (a8219143 Nick Grifka)
o Support EV_CLOSED on linux for poll(2) (2530e7c6 Azat Khuzhin)
o Parse IPv6 scope IDs. (f602211f Philip Homburg)
o evutil_time: Implements usleep() using wait funtion on Windows (d42240d1 yuangongji)
o evutil_time: detect and use _gmtime64_s()/_gmtime64() (f4a6152c yuangongji)
slightly touches the behaviour:
o bufferevent: allow setting priority on socket and openssl type (4dd3acdd Nicolas J. Bouliane)
o Fix EV_CLOSED detection/reporting (epoll only) (1df324d4 Azat Khuzhin) (XXX)
o Revert "Warn if forked from the event loop during event_reinit()" (71f5c0d3 Azat Khuzhin)
samples:
o https-client: load certificates from the system cert store on Windows (e9478640 yuangongji)
build fixes:
o Do not use sysctl.h on linux (it had been deprecated) (d2871a37 Azat Khuzhin)
o cmake: avoid problems from use of CMAKE_USE_PTHREADS_INIT (a62ec765 Paul Osborne)
o Update list of cmake files for autotools dist archive (2016f017 Azat Khuzhin)
o LibeventConfig.cmake: restore CMAKE_FIND_LIBRARY_SUFFIXES and LIBEVENT_STATIC_LINK default (640f9cf6 Mario Emmenlauer)
o cmake: fix getaddrinfo checking error (dea51c2e yuangongji)
o autoconf: fix getaddrinfo checking errors on mingw (b9bf7fa7 yuangongji)
o Do not use shared global structures on CYGWIN (8a9b5655 Azat Khuzhin)
o Added uninstall target check to cmakelists (3f1fb1f9 Dimo Markov)
o Fix compilation without OPENSSL_API_COMPAT (921bdcdd Azat Khuzhin)
o cmake: improve package config file (1c047618, baec84f2 yuangongji)
o Link with iphlpapi only on windows (976f7d34 Azat Khuzhin)
o autotools: fails build when need but can not find openssl (93174bb5 yuangongji)
o Merge branch 'http-connect' (e2424229 Azat Khuzhin)
o Fix compat with NetBSD >= 10 (5febb4e1 Kamil Rytarowski)
o cmake: fix getrandom() detection (e0e5f3bd Azat Khuzhin)
o arc4random: replace sysctl() with getrandom (on linux) (66ec78fd Azat Khuzhin)
o Upgrade autoconf (after upgrading minimum required to 2.67) (45da7d9d yuangongji)
o eliminate some C4267 warnings in Windows (9e468c77 yuangongji)
o autotools: attach doxygen target into all target (5d1e8570 yuangongji)
o cmake: attach doxygen target into all target (7a85300a yuangongji)
o Change the minimum version of automake to 1.13 and autoconf to 2.67 (fdb8fb66 ygj6)
o Add Uninstall.cmake.in into dist archive (877f2355 Azat Khuzhin)
Changes in version 2.1.11-stable (01 Aug 2019)
This release contains one ABI breakage fix (that had been introduced in
2.1.10, and strictly speaking this release breaks ABI again to make it
compatible with 2.1.9 and less, please take a look at 18104973 for more
details). Apart from that it contains some bug fixes, that grouped below.
And even though the return value for evbuffer_setcb() had been changed it
should ABI compatible (anyway that function is in -compat.h header).
There is also one patch that introduce new functionality, this is 546a366c,
to tune SO_RCVBUF/SO_SNDBUF in evdns, but one can count it as a bug-fix on
the application level, since before you cannot tune this settings and hence
you could stumble on problems.
ABI breakage:
o Protect min_heap_push_ against integer overflow. (8c899768 Tobias Stoeckmann)
o Revert "Protect min_heap_push_ against integer overflow." (18104973 Azat Khuzhin)
functionality:
o evdns: add new options -- so-rcvbuf/so-sndbuf (546a366c Azat Khuzhin)
build:
o Change autoconf version to 2.62 and automake version to 1.11.2 (2a333008 yuangongji)
o cmake: install shared library only if it was requested (596855f7 Azat Khuzhin)
o Missing <winerror.h> on win7/MinGW(MINGW32_NT-6.1)/MSYS (9559349c yuangongji)
o cmake: set library names to be the same as with autotools (305251b9 yuangongji)
o Enable _GNU_SOURCE for Android (f013fc7d Keith Smiley)
o Enable kqueue for APPLE targets (3aa68a82 Keith Smiley)
o autotools: do not install bufferevent_ssl.h under --disable-openssl (5349a07e Azat Khuzhin)
o cmake: link against shell32.lib/advapi32.lib (c9ce638c Azat Khuzhin)
o Add README.md into dist archive (3660a4cc Azat Khuzhin)
o cmake: add missing autotools targets (doxygen, uninstall, event_rpcgen.py) (2d65071c yuangongji)
o m4/libevent_openssl.m4: fix detection of openssl (d4056e59 Fabrice Fontaine)
o Fix detection of the __has_attribute() for apple clang [ci skip] (7fd7c5ef Azat Khuzhin)
lib:
o buffer: fix possible NULL dereference in evbuffer_setcb() on ENOMEM (598f247d Azat Khuzhin)
o Warn if forked from the event loop during event_reinit() (b75922ae Azat Khuzhin)
o evutil: set the have_checked_interfaces in evutil_check_interfaces()
(ef498aa2, a09265ac jeremyerb)
samples:
o https-client: correction error checking (a8a04565 wenyg)
Changes in version 2.1.10-stable (26 May 2019)
This release contains mostly fixes (some evbuffer oddity, AF_UNIX handling in
http server, some UB fixes and others) but also some new functionality
(without ABI breakage as usual) and now dist archive can be used for building
on windows (getopt had been added into it).
Above you will find changelog for this particular release (but with some
trivial fixes pruned out from it - to make it a little bit more informative).
To view full changelog please use git:
git log --format=' o %s (%h %aN)' release-2.1.9-beta...release-2.1.10-stable
dist:
o Add getopt into dist archive (7042ff24 Azat Khuzhin)
functionality:
o evdns: add DNS_OPTION_NAMESERVERS_NO_DEFAULT/EVDNS_BASE_NAMESERVERS_NO_DEFAULT
(58e81106 Azat Khuzhin)
o Add support for EV_TIMEOUT to event_base_active_by_fd (3f893f0a John Ohl)
fixes:
o Merge branch 'evbuffer-fixes-806-v2' (2fea04b3 Azat Khuzhin)
o Merge branch 'issue-807-accept4-getnameinfo-AF_UNIX' (7c4da937, e2790a7f
Azat Khuzhin)
o kqueue: Avoid undefined behaviour. (e70e18e9 Tobias Stoeckmann)
o Prevent integer overflow in kq_build_changes_list. (43a55a23 Tobias Stoeckmann)
o evdns: fix lock/unlock mismatch in evdns_close_server_port() (54103883 zhuizhuhaomeng)
o Merge remote-tracking branch 'official/pr/804' -- Enforce limit of NSIG
signals (87fa93a8 Tobias Stoeckmann)
o Protect min_heap_push_ against integer overflow. (0b46bb8c Tobias Stoeckmann)
o le-proxy: initiate use of the Winsock DLL (2a1e1530 linxiaohui)
o Fix leaks in error path of the bufferevent_init_common_() (bb0f8fe7 Azat Khuzhin)
o buffer: make evbuffer_prepend() of zero-length array no-op (61fa7b7d Azat Khuzhin)
o Merge branch 'evbuffer-empty-chain-handling' (6a3dd717 Azat Khuzhin)
o Don't loose top error in SSL (3d1a7a1d Yury Korzhetsky)
o Remove needless check for arc4_seeded_ok (6602a97d Seong-Joong Kim)
o Merge pull request #769 from sungjungk/fix-return-handling (91084140 Nathan French)
build:
o Define `_GNU_SOURCE` properly/consistently per autoconf (00ba9fa2 Enji Cooper)
o signal: guard __cdecl definition with #ifdef (d89045a6 Azat Khuzhin)
o Link test/regress with event_core/event_extra over event (22380996 Azat Khuzhin)
tests:
o Use kill() over raise() for raising the signal (fixes osx 10.14 with
kqueue) (3db5296b, a45f6733 Azat Khuzhin)
o tinytest: implement per-test timeout (via alarm() under !win32 only)
(b64dbfb6, 75d7e1ff Azat Khuzhin)
Changes in version 2.1.9-beta (10 February 2019)
This changelog will differs from other releases in the next few clauses:
- contains only highlighted changes (so now it will not contains a lot of
patches that fixes some stuff in regression tests, typos, leaks fixes in
samples and so forth)
- no authors (since merge commits breaks them anyway, but AUTHORS sections in
README will be kept up to date)
- group name trimmed from commit subjects trimmed
- it's been 2 years since the previoius release, so it is pretty huge
And I think that this is more useful, so from now on it will always has the
same look (until there will too many objections of course).
To view full changelog please use git:
git log --format=' o %s (%h %aN)' release-2.1.8-stable...release-2.1.9-beta
dist archive:
o Add cmake rules into dist archive (bf3a67cf)
o Add missing print-winsock-errors.c into dist archive (822d6462)
o Include openssl-compat.h into dist archive (08658136)
core:
o Merge branch 'check-O_NONBLOCK-in-debug' (a39898f3, a8155c62)
o Merge branch 'event-ET-#636-v2' (ca4b6404)
o Fix visibility issues under (mostly on win32)
(349081e1g, 802be13ag, a1f28e2f)
o Define __EXT_POSIX2 for QNX (a2176f2c)
o Cleanup __func__ detection (b3af7bdd)
o Add convenience macros for user-triggered events (06ec5de6)
o Notify event base if there are no more events, so it can exit without delay (d9d1c09e)
o Fix base unlocking in event_del() if event_base_set() runned in another thread (4f0f40e3)
o If precise_time is false, we should not set EVENT_BASE_FLAG_PRECISE_TIMER (27dee54d)
o Fix race in access to ev_res from event loop with event_active() (43d92a6d)
o Return from event_del() after the last event callback termination (876c7ac7)
http:
o Merge branch 'http-EVHTTP_CON_READ_ON_WRITE_ERROR-fixes-v2' (eb7b472b)
o Preserve socket error from listen across closesocket cleanup (2ccd00a6)
o fix connection retries when there more then one request for connection (d30e7bba)
o improve error path for bufferevent_{setfd,enable,disable}() (a8cc449e)
o Fix conceivable UAF of the bufferevent in evhttp_connection_free() (6ac2ec25)
o Merge branch 'http-request-line-parsing' (cdcfbafe)
o Fix evhttp_connection_get_addr() fox incomming http connections (4215c003)
o fix leaks in evhttp_uriencode() (123362e9)
o CONNECT method only takes an authority (7d1ffe64)
o Allow bodies for GET/DELETE/OPTIONS/CONNECT (23eb38b9)
o Do not crash when evhttp_send_reply_start() is called after a timeout. (826f1134)
o Fix crashing http server when callback do not reply in place (5b40744d, b2581380)
o fix handling of close_notify (ssl) in http with openssl bufferevents (7e91622b)
evrpc:
o use *_new_with_arg() to match function prototype (a95cc9e3)
o avoid NULL dereference on request is not EVHTTP_REQ_POST (e05136c7)
regression tests:
o Merge branch 'TT_RETRIABLE' (6ea1ec68, f9b592aa)
bufferevent:
o Merge branch 'iocp-fixes' (6bfac964)
o Merge branch 'be-wm-overrun-v2' (3f692fff)
o bufferevent_socket_connect{,_hostname}() missing event callback and use ret code (1dde74ef)
o don't fail be_null_filter if bytes are copied (b92b0792)
o Call underlying bev ctrl GET_FD on filtered bufferevents (ebfac517)
bufferevent_openssl/openssl:
o Merge branch 'ssl_bufferevent_wm_filter-fix' (30020a35)
o be_openssl: avoid leaking of SSL structure (e86ccfe5)
o Fix build with LibreSSL 2.7 (894ca48a)
o Add missing includes into openssl-compat.h (01bc36c1)
o Explicitly call SSL_clear when reseting the fd. (29b7a516)
o Unbreak build with LibreSSL after openssl 1.1 support added (230af9f0)
samples:
o Merge branch 'sample-http-server' (b6309bcc)
o sample/https-client: use host SSL certificate store by default (5c0132f3)
listener:
o ipv6only socket bind support (ba148796)
o Merge branch 'listener-immediate-close' (df2ed13f)
o Merge branch 'evconnlistener-do-not-close-client-fd' (42e851bb)
evdns:
o evdns: handle NULL filename explicitly (0033f5cc)
o Merge branch 'evdns_getaddrinfo-race-fix' (3237d697)
o Generating evdns_base_config_windows_nameservers docs on all platforms (3bd2ce43)
utils:
o Merge branch 'evutil_found_ifaddr-dev' (b07e43e6)
o Avoid possible SEGVs in select() (in unit tests) (8818c86c)
o Port `event_rpcgen.py` and `test/check-dumpevents.py` to Python 3. (532a8cc3)
buffer:
o Fix assert() condition in evbuffer_drain() for IOCP (d6326104)
o fix incorrect unlock of the buffer mutex (for deferred callbacks) (2b4d127d)
o Fix wrong assert in evbuffer_drain() (9f4d0dce)
cmake:
o fix checking of devpoll backend (like in autotools, by devpoll.h existence) (7f161902)
o support static runtime (MSVC) (c8b3ec17, 61fb055a)
o do not build both (SHARED and STATIC) for MSVC/win32 (bc7f2fd9)
o introduce EVENT__LIBRARY_TYPE option (eb10a738)
o ensure windows dll's are installed as well as lib files (29590718)
o Fix generation of LibeventConfig.cmake for the installation tree (7fa08c4b)
o fix pkgconfig generation (copy-paste typo) (cc554d87)
o Merge branch 'cmake-missing-bits' (9806b126)
o Fix detection of timerfd_create() in CMake. (e50af331)
o Merge branch 'cmake-configure-fixes-v2' (a0bfe2c4)
o Do not add epoll_sub (syscall wrappers) for epoll in cmake (cea61de6)
o Fix RPATH for APPLE (45b1f379)
autotools:
o include win32 specific headers for socklen_t detection on win32/mingw (d7579fb9)
o Ignore evconfig-private.h for autotools (37423849)
o config.h can't be prefixed unconditionally (63a054f8)
o Merge branch 'pull-628' (7e56c8b2)
o Provide Makefile variables LIBEVENT_{CFLAGS,CPPFLAGS,LDFLAGS} (2f060c5f)
o confirm openssl is working before using (b39ccf8e)
o pass $(OPENSSL_INCS) for samples (FTBFS macOS) (c2495265)
o Add configure check for midipix (d433201e)
o Fix tests with detached builds (c46ff439)
build:
o Fix arc4random_addrandom() detecting and fallback (regression) (303d6d77)
o Merge branch 'win32-fixes' (ebd12e6d)
o Merge branch 'fix-openssl-linking' (e7bd9e03)
o Merge branch 'fix-struct-linger' (8567f2f5)
CI:
o travis-ci/appveyor now uses fast_finish+allow_failures
(5e97b6e6, dd472e7d, dfb5fc167)
o Merge branch 'travis-ci-osx-fixes' (9f02b39c)
o Merge branch 'win64-fixes' (aee0fcd5)
Changes in version 2.1.8-stable (22 January 2017)
Libevent 2.1.8-stable, it contains openssl fixes for resetting fd and using
bufferevent_openssl_filter_new(). vagrant fixes, some build fixes, increased
timeout for some tests (to reduce number of failures due to timing issues),
date in RFC1123 format and running tests in parallel.
There are highlighted changes above.
Build fixes:
o Fix _FILE_OFFSET_BITS redinition (solaris/autotools) (336f3b11 Azat Khuzhin)
o util-internal: fix __func__ redefinition (netbsd) (253e7fa9 Azat Khuzhin)
o Fix signedness differ for iov_base (solaris) (2c62062e Azat Khuzhin)
o evutil_time: include <unistd.h> when there is only sleep()/usleep() (3e75194c Azat Khuzhin)
o http: fix formatter for pritnf for req->ntoread (osx) (1cbf26f6 Azat Khuzhin)
Testing environment:
o Merge branch 'automake-tests-parallel-v4' (*includes ci bits also*) (59e217df Azat Khuzhin)
Vagrant env fixes:
o vagrant/netbsd: missing libtool (9c9be399 Azat Khuzhin)
o vagrant/netbsd: more reliable way of installing packages (36da6877 Azat Khuzhin)
o vagrant/osx: use make instead of gmake (there is no gmake) (f7c70aef Azat Khuzhin)
o vagrant: add centos box (ca591c5b Azat Khuzhin)
Tests:
o test/dns: replace servname since solaris does not have "http" (d6bafbbe Azat Khuzhin)
o test/thread: netbsd is too slow, increase timeout for conditions_simple (3c7422fc Azat Khuzhin)
o test/dns: run async resolving after sync one (to avoid timeouts) (07862531 Azat Khuzhin)
o test/http: turn off some tests that based on backlog filling (falky) (26f416c1 Azat Khuzhin)
Bugfixes:
o Merge branch 'openssl-filter-fixes-v4' (83e0f43b Azat Khuzhin)
o Merge branch 'date-rfc1123' (68def435,4798de6c,4545807d Azat Khuzhin)
o Merge branch 'be-openssl-fd-reset-fix-v2' (86fa0070,32adf434 Azat Khuzhin)
o Merge branch 'openssl-1.1-init-fixes-v2' (18a161f0 Azat Khuzhin)
o Fix incorrect MIME type (23f9a20e johnsonlee)
Trivial fixes:
Documentation updates:
o Update README.md (3821cca1 Breaker)
Changes in version 2.1.7-rc (2 Novemer 2016)
Libevent 2.1.7-rc contains openssl 1.1 support, build fixes, CI improvements
and plus Vagrantfile for testing under multiple OS'es.
Continious Integration:
o Use coveralls.io via travis (9ac000c Azat Khuzhin)
o travis-ci: use container-based infrastructure (7e12e96 Azat Khuzhin)
o travis-ci/osx: fix compiling/linking openssl libraries (9d2f8d4 Azat Khuzhin)
o travis-ci: use gcc-5 (fixes osx|gcc failures) (d7ceae5 Azat Khuzhin)
o Testing with vagrant for 6 OS and cmake+autoconf (9585338 Azat Khuzhin)
o travis-ci/osx: install lcov (e4e099b Azat Khuzhin)
Build Improvements/Fixes:
o Fix cmake -DEVENT__COVERAGE=ON (40fbffc Azat Khuzhin)
o autogen.sh: learn about gmake (9376ac4 Azat Khuzhin)
o autogen.sh: remove all autoconf/automake caches, if any (69cce25 Azat Khuzhin)
o cmake: fix finding python2, and check that it is really 2 (3453c08 Azat Khuzhin)
o cmake: fix CheckFunctionExistsEx/CheckPrototypeDefinition (CMP0054) (43b69b2 Azat Khuzhin)
o cmake: cleanup (dc624ad Zonr Chang)
o cmake/win32: fix running regress, but fixing finding python2 interpreter (bcb990a Azat Khuzhin)
o cmake: use PYTHON_EXECUTABLE to find python2 (a4d044c Azat Khuzhin)
o Merge branch 'force-disable-clockgettime' (83c7cdf Azat Khuzhin)
Code Improvements (core)
o use ev_uint16_t instead of unsigned short for port (e983712 Thomas Bernard)
o Merge branch 'contrib-guide-v2' (b9c5077 Azat Khuzhin)
o poll: Prevent libevent from spinning if POLLNVAL occurs (675974c Tim Hentenaar)
Testing:
o test/regress: cover a polling of invalid fd (cb0df5c Tim Hentenaar)
Code Improvements (bufferevent_openssl)
o Make it build using OpenSSL 1.1.0 (3e9e0a0 Kurt Roeckx)
o Don't call BIO_number_{read|written} on NULL BIOs. (6702da1 Adam Langley)
o Switch from a 512 to 2048-bit RSA key. (f9803a6 Adam Langley)
Trivial fixes:
o Ignore temporary configure files (8fb08ae Azat Khuzhin)
o README.md: fix typo: ar -> are (2361616 Simone Basso)
o be: just a simple mistake, reinclude the <errno.h> (7521664 Seven)
Changes in version 2.1.6-beta (4 July 2016)
Libevent 2.1.6-beta contains mostly bug fixes (evbuffers, evthread, evdns,
bufferevents, core, http, samples), improvements but mostly to fix some
possible issues (EVHTTP_CON_LINGERING_CLOSE), a lot of new unit tests and new
appveyor integration.
Security Fixes (utils)
o evutil_parse_sockaddr_port(): fix buffer overflow (329acc1 Azat Khuzhin)
Security Fixes (evdns)
o evdns: name_parse(): fix remote stack overread (96f64a0 Azat Khuzhin)
o evdns: fix searching empty hostnames (ec65c42 Azat Khuzhin)
New APIs (evdns)
o New function to get address for nameserver. (537177d Nick Mathewson)
New APIs (bufferevents)
o expose bufferevent_incref/decref (with fewer modifications) (1ed6718 Mark Ellzey)
New APIs (internal)
o evdns: export cancel via callbacks in util (like async lib core/extra issues) (8cbe65d Azat Khuzhin)
New APIs/Improvements (http)
o http: take EVHTTP_CON_LINGERING_CLOSE into account for "Expect: 100-Continue" (ac448a7 Azat Khuzhin)
o http: lingering close (like nginx have) for entity-too-large (9fde518 Azat Khuzhin)
o http: read server response even after server closed the connection (680742e Azat Khuzhin)
o http: export evhttp_connection_set_family() (714fc70 Azat Khuzhin)
o http: reuse connected address only with EVHTTP_CON_REUSE_CONNECTED_ADDR (a50f5f0 Azat Khuzhin)
o http: use IP address that we got before (if any) during retrying (54c887d Azat Khuzhin)
Bugfixes (core)
o Fix getaddrinfo under solaris (for multiprotocol case) (40730ae Azat Khuzhin)
o Check for Mac OS X 10.4 kqueue bug properly (df6f99e Mark Mentovai)
o event_reinit: make signals works after fork() without evsig_add() (88640aa Nicholas Marriott)
o event_reinit: always re-init signal's socketpair (ad0c237 Nicholas Marriott)
o Free event queues even for recursive finalizers (7c8d015 Azat Khuzhin)
o Fix checking for make_base_notifiable() (f337296 Azat Khuzhin)
o Set correct socklen for PF_INET6 sockaddr len (3499ad9 Mark Ellzey)
o Fix garbage value in socketpair util function, stdint? (043ae74 Mark Ellzey)
o fix the return value of event_deferred_cb_schedule_ (38cef64 Greg Hazel)
o event_free_debug_globals_locks(): disable lock debugging (e5c87d1 Azat Khuzhin)
o event: call event_disable_debug_mode() in libevent_global_shutdown() (941faae Azat Khuzhin)
o ht-internal: don't reset hth_table_length explicitly in name_##HT_CLEAR (597c7b2 Azat Khuzhin)
Bugfixes (evthread)
o evthread: fix evthread_setup_global_lock_() for debug-lock with a real-lock case (e4556fc Azat Khuzhin)
o evthread: evthreadimpl_disable_lock_debugging_() for libevent_global_shutdown() (ccc5593 Azat Khuzhin)
Bugfixes (evdns)
o evdns: avoid double-free in evdns_base_free() for probing requests (4db15e0 Azat Khuzhin)
o evdns: evdns_base_free(): fix UAF of evdns_base with @fail_requests (00313c5 Azat Khuzhin)
o evdns: evdns_base_free(): free requests before namservers (14f84bb Azat Khuzhin)
o evdns: fix randomize-case by make case-insensitive as required (9c238de Azat Khuzhin)
Bugfixes (bufferevents)
o be_sock: handle readv() returns ECONNREFUSED (freebsd 9.2) (3189eb0 Azat Khuzhin)
o be_filter: avoid data stuck under active watermarks (b627ad8 Eduardo Panisset)
o Fix bufferevent_pair to properly set BEV_EVENT_{READING,WRITING} on flush. (2851889 David Paschich)
o be_openssl: clear all pending errors before SSL_*() calls (38e0f4a Azat Khuzhin)
o be_sock: cancel in-progress dns requests (86dfd2c Azat Khuzhin)
o be_sock: unfreeze buffers on fd changing (255525d Azat Khuzhin)
o be_sock: bufferevent_socket_connect_hostname(): make it thread-safe (809bb39 Azat Khuzhin)
o be_openssl: don't call do_write() directly from outbuf_cb (da52933 Azat Khuzhin)
o be_openssl: use bufferevent_enable() instead of bufferevent_add_event_() (0c66d32 Azat Khuzhin)
o be_openssl: don't add events during bev creation (like be_sock) (f4b6284 Azat Khuzhin)
o Fix lock leak in be_pair_flush() if flush type is BEV_NORMAL (f45d39d Bill Vaughan)
o be_openssl: don't use *_auto() in do_handshake() we can't have fd == -1 there (877280d Azat Khuzhin)
o be_openssl: don't call set_open_callbacks() if fd == -1 (e8a2da9 Azat Khuzhin)
o be_openssl: get rid off hackish "fd_is_set", to fix some corner cases (40b0379 Azat Khuzhin)
o be: we don't need to use getpeername() we we have conn_address (2c271e2 Azat Khuzhin)
o Call underlying bev ctrl SET_FD on filtered bufferevents (c2aa7dc Mark Ellzey)
o be_pair: release shared lock with the latest of bufferevent_pair (92a359e Azat Khuzhin)
Bugfixes (http)
o [Issue #313] set method to ASCII "NULL" if evhttp_method() returns NULL (17cc636 Mark Ellzey)
o evhttp_have_expect(): fix -Wlogical-not-parentheses (24b5214 Azat Khuzhin)
o http: set fd to -1 unconditioally, to avoid leaking of DNS requests (7a4b472 Azat Khuzhin)
o http: avoid leaking of fd in evhttp_connection_free() (f0e1341 Azat Khuzhin)
o http: get fd from be layer during connection reset (4a53c54 Azat Khuzhin)
o http: fix EVHTTP_CON_READ_ON_WRITE_ERROR when it doesn't supported by OS (2ff164a Azat Khuzhin)
o http: do not do function calls under EVUTIL_ASSERT() to fix NDEBUG builds (7c89999 Azat Khuzhin)
o http: fix leaking of response_code_line (8f18a62 Azat Khuzhin)
o http: fix "Expect: 100-continue" client side (0b46b39 Azat Khuzhin)
o http: fix conflicts EVHTTP_CON_AUTOFREE and EVHTTP_CON_REUSE_CONNECTED_ADDR (4dc0979 Azat Khuzhin)
o http: avoid epoll_ctl() on already closed fd (triggers by http/chunk_out) (ab3bc69 Azat Khuzhin)
o http: install timeout for read too during connect for ssl (040000d Azat Khuzhin)
o http: fix evhttp_request_own() by checking EVHTTP_USER_OWNED in more cases (b0d3964 Azat Khuzhin)
o http: fix detecting EOF without write (7ed02ac Azat Khuzhin)
o evhttp: Fix failure to send all output data for POST/PUT requests (24eea0d John Ohl)
o Fix evhttp_uriencode() regression. (c6b1ec1 Mark Ellzey)
o removed unused vars (e94250c Mark Ellzey)
o pointer overflow checks for evhttp_uriencode (72afe4c Zonr Chang)
Bugfixes (evbuffers)
o buffer: fix overflow check in evbuffer_expand_singlechain() (a3f4ccd Azat Khuzhin)
o buffer: evbuffer_add_buffer(): clean empty chains from destination buffer (26fd932 Azat Khuzhin)
o Fix n_add_for_cb in evbuffer_prepend() in case of new buffer required (0abd039 Azat Khuzhin)
o be_filter: actually disable output_filter during processing output (c031215 Simon Perreault)
o evbuffer_add: Use last_with_datap if set, not last. (a8769ef Marcus Sundberg)
o EVBUFFER_PTR_SET -> EVBUFFER_PTR_ADD (8674e4f jer-gentoo)
Bugfixes (evconnlistener)
o listener: unlock lev on error in listener_read_cb() (2a71b33 Azat Khuzhin)
o Fix potential fd leak in listener_read_cb() (a695a72 Mark Ellzey)
Testing
o tests: use waitpid(..., WNOWAIT) to fix failing of main/fork under solaris (43eb56c Azat Khuzhin)
o test: replace sleeping with syncing pair in main/fork (16d220c Azat Khuzhin)
o test/http: do not run tests that based on backlog filling (freebsd) (500b6b7 Azat Khuzhin)
o test/bufferevent/iocp: fix test name for "bufferevent_connect_fail_eventcb" (4410e9d Azat Khuzhin)
o test/ssl: use send()/recv()/EVUTIL_ERR_RW_RETRIABLE()/EVUTIL_SOCKET_ERROR() to fix win32 (a9e8cd6 Azat Khuzhin)
o test/https_basic: increase timeout for complete write (fixes win32) (d5a2f2f Azat Khuzhin)
o test: fix building with --disable-thread-support under win32 (a487706 Azat Khuzhin)
o test/buffer: evbuffer_add_buffer() with empty chains (a272bc4 Azat Khuzhin)
o test/buffer: evbuffer_remove_buffer() with empty chains (prepend) (f0cfa14 Azat Khuzhin)
o test/buffer: evbuffer_remove_buffer() with empty chains (evbuffer_add_buffer()) (2880ce6 Azat Khuzhin)
o test/buffer: cover evbuffer_expand() for overflow (48dab7a Azat Khuzhin)
o test/be_filter: creating test case for data stuck with active watermarks (766194b Eduardo Panisset)
o test/http: avoid using conditionals with omitted operands (fixes VS2015) (2a4bf29 Azat Khuzhin)
o test/http: don't mix declarations and code (fixes -Wdeclaration-after-statement) (aabf1c2 Azat Khuzhin)
o test/buffer: fix leak in test_evbuffer_prepend() (c08d90b Azat Khuzhin)
o test/buffer: avoid errors with --no-fork (reinitialize static vars) (e7d1e39 Azat Khuzhin)
o test/buffer: cover n_add_for_cb when evbuffer_prepend() need to allocate buffer (e77ff41 Azat Khuzhin)
o test/tinytest_macros: add new one tt_nstr_op() (bd19a28 Azat Khuzhin)
o test/bufferevent: check that output_filter disabled during processing output (ae28812 Azat Khuzhin)
o test/listener: regression for missing unlock in listener_read_cb() (7d85651 Azat Khuzhin)
o test/regress: add tests for evbuffer_add() breakage on empty last chain (d5ee739 Marcus Sundberg)
o test/http: fix running some tests sequential (with --no-fork) (bddad71 Azat Khuzhin)
o test/http: localize evhttp server structure (cbc3209 Azat Khuzhin)
o test/dns: regression for empty hostname (d7348ba Azat Khuzhin)
o test/http: fix SERVER_TIMEOUT tests under win32 (d49a658 Azat Khuzhin)
o test/http: add a helper for creating timedout/failed request (376f107 Azat Khuzhin)
o test/http: adopt for C90 (mixed code and declarations) (d02a285 Azat Khuzhin)
o test/http: cover NS timed out during request cancellations separatelly (0c343af Azat Khuzhin)
o test/http: request cancellation with resolving/{conn,write}-timeouts in progress (334340d Azat Khuzhin)
o test/http: exit from the loop in the errorcb to wait cancellation (927ab33 Azat Khuzhin)
o regress_clean_dnsserver(): reset global port vars (351207f Azat Khuzhin)
o test/http: read_on_write_error: fix it for win32 (3b58169 Azat Khuzhin)
o test/http: separate coverage for EVHTTP_CON_READ_ON_WRITE_ERROR (5c2b4c1 Azat Khuzhin)
o test/http: cover "Expect: 100-continue" client-server interaction (31d8116 Azat Khuzhin)
o test/http: *lingering tests shouldn't have "Expect: 100-continue" (ed469ab Azat Khuzhin)
o test: use EVUTIL_SHUT_WR (04fc82f Azat Khuzhin)
o test/http: avoid huge stack allocations to fix win32 builds (3166765 Azat Khuzhin)
o test: http/lingering_close: cover EVHTTP_SERVER_LINGERING_CLOSE (e122ca1 Azat Khuzhin)
o test: http/non_lingering_close: cover ~EVHTTP_SERVER_LINGERING_CLOSE (f41e1b0 Azat Khuzhin)
o test: http/*: update expected HTTP codes for body exceeds `max_body_size` (addf2b9 Azat Khuzhin)
o test: http/data_length_constrains: set EVHTTP_CON_READ_ON_WRITE_ERROR (d38a723 Azat Khuzhin)
o test: increase buffer size for http/data_length_constraints to trigger EPIPE (0792e1e Azat Khuzhin)
o test/tinytest_demo: include <windows.h> for win32 to fix tdm-gcc (f062bbe Azat Khuzhin)
o test/regress: cover event_del() waiting mechanism (5b58b70 Azat Khuzhin)
o test/regress: cover existing signal callbacks and fork() + event_reinit() (ceddc60 Azat Khuzhin)
o test/regress: cover signals after fork() + event_reinit() (b075b81 Azat Khuzhin)
o test/regress: main/fork: rewrite assertions by just removing event in callback (088d8b3 Azat Khuzhin)
o test/dns: check exit code of evdns_getaddrinfo() (0b9d432 Azat Khuzhin)
o test/dns: cover evdns_getaddrinfo() and evdns_base_free() with @fail_requests (4ad3483 Azat Khuzhin)
o test/dns: cover @fail_requests for evdns_base_free() (d6c6fb4 Azat Khuzhin)
o test/dns: more graceful coverage of @fail_requests (123d372 Azat Khuzhin)
o test/ssl: cover busy-loop (i.e. {read,write}-blocked-on-{write,read} stuff) (da0ea7a Azat Khuzhin)
o test/http: write_during_read for https (23c77b6 Azat Khuzhin)
o test/http: connection_fail for https (7ea26f7 Azat Khuzhin)
o test/http: stream_out for https (ac04968 Azat Khuzhin)
o test/http: chunk_out for https (a71ffb9 Azat Khuzhin)
o test/regress: fix ssl-less builds (need to make this prettier) (3160716 Azat Khuzhin)
o test/http: allow dirty shutdown for ssl to fix https_incomplete (1ede326 Azat Khuzhin)
o test/http: https basic (59714b4 Azat Khuzhin)
o test/http: incomplete{,_timeout} for https (615490d Azat Khuzhin)
o test/http: add simplest test for http/https/https_dirty_shutdown (93b19dc Azat Khuzhin)
o test/http: https: retry coverage (7c2d24a Azat Khuzhin)
o test/http: https server support (plus some helpers) (a7088ad Azat Khuzhin)
o test/http: more sanity checks (a27c53c Azat Khuzhin)
o test/ssl: export getkey()/getcert()/get_ssl_ctx()/init_ssl() for https (0c4c387 Azat Khuzhin)
o test/regress_be: basic coverage bufferevent_flush() for pair/sock layers (ad52602 Azat Khuzhin)
o test/regress_be: socket_filter_inactive: check bufferevent after creation (f8081af Azat Khuzhin)
o test/regress_be: cover finalizers from inactive to active queue (337684b Azat Khuzhin)
o test/regress_buffer: fix clang compilation warnings (d8fd4c0 Azat Khuzhin)
o test/regress_http: fix compilation warnings (-Wmissing-field-initializers) (cd422e0 Azat Khuzhin)
o test/regress_dns: fix compilation warnings (-Wmissing-field-initializers/for) (f55db98 Azat Khuzhin)
o tests/regress_dns: cover that randomize-case works case-insensitive (1e8bfbc Azat Khuzhin)
o test: fix bufferevent/bufferevent_pair_release_lock in debug mode (3f749e9 Azat Khuzhin)
o test: fix bufferevent/bufferevent_pair_release_lock for freebsd (79f9ace Azat Khuzhin)
o test/regress_be: bufferevent_enable() shouldn't call eventcb by it's own (a0f308d Azat Khuzhin)
o test/regress_be: introduce fake_listener_create() (37dc9e0 Azat Khuzhin)
o test/regress_http: cover evhttp_request_own() (6f6fa0d Azat Khuzhin)
o test/regress_http: cover write during read (3d15aeb Azat Khuzhin)
o test/regress_http: verify that closecb will be called without multiple write (4be6c70 Azat Khuzhin)
o test/regress: fix bufferevent_pair_release_lock with EVENT_DEBUG_MODE (6ea6655 Azat Khuzhin)
o test/regress_ssl: check events fd/pending after timeout triggered (cdafdf0 Azat Khuzhin)
o test/regress_ssl: cover case when server didn't up (failed with timeout) (74845f1 Azat Khuzhin)
o test/regress_ssl: covert that we can't change fd with underlying (df507af Azat Khuzhin)
o test/regress_ssl: cover that events (read/write) at finish not pending (762edb4 Azat Khuzhin)
o test/regress_ssl: cover fd manipulations (b78a829 Azat Khuzhin)
o test/regress_ssl: convert open_ssl_bufevs() to mask (46bba73 Azat Khuzhin)
o test/regress_ssl: convert client/server to mask too (3455991 Azat Khuzhin)
o test/regress_ssl: cover "allow_dirty_shutdown" (0430327 Azat Khuzhin)
o test/regress_ssl: convert regress_bufferevent_openssl() to bitmask (342e116 Azat Khuzhin)
o tests/regress_ssl: drop duplicated assert (25e56fd Azat Khuzhin)
o test/regress_http: initialize "dns_base" to avoid reading trash (9f0bff3 Azat Khuzhin)
o test/http: cover retrying with saved conn_address by shutting down dns server (f4874d8 Azat Khuzhin)
o be_pair/regress: cover use of shared lock (lock/unlock/free) (a558fcd Azat Khuzhin)
o regress_dns: drop hack for event_debug_map_HT_GROW in leak tests (3540a19 Azat Khuzhin)
Sample code
o Fix memory leak in signal-test.c (666db91 basavesh.as)
o sample/hello-world: exAmple, not eXMple (2d3cd35 kirillDanshin)
o dns-example: allow to set ns from args (df19a97 Azat Khuzhin)
o dns-example: convert to getopt() (32f8592 Azat Khuzhin)
o http-connect: make it win32 compilable (1bf7595 Azat Khuzhin)
o sample/https-client: allow to change path to ca-certificates (fdf713a Azat Khuzhin)
o sample/https-client: check for ERR_remove_thread_state() existence (c4e9d9b Azat Khuzhin)
o sample/https-client: replace ERR_remove_state() by ERR_remove_thread_state() (77ad68a Azat Khuzhin)
o sample/https-client: add -timeout option (4637aa8 Azat Khuzhin)
o sample/https-client: don't try to free uninitialized SSL (f3d7ff5 Azat Khuzhin)
o sample/https-client: graceful exit with freeing memory (to make valgrind happy) (24a1f25 Azat Khuzhin)
o https-client: correctly handle URLs with no path (like "https://host:port") (29a0482 Andrey Skriabin)
o sample/http-connect: don't use assert() to make it work with NDEBUG (6dc71e7 Azat Khuzhin)
o sample/http-connect: made it compatible with C90 (f976d43 Azat Khuzhin)
o sample: add HTTP CONNECT tunnelling example using libevent http layer (1d34498 Azat Khuzhin)
o Update dns-example. (620ff24 Mark Ellzey)
Documentation
o Update README.md (b8ec70c Mark Ellzey)
o Update README.md (80faee9 Mark Ellzey)
o Update README.md (ad4a897 Mark Ellzey)
o Update README.md (a2b2e1e Mark Ellzey)
o Update README.md (0dfa5dc Mark Ellzey)
Code Improvements (evthread)
o evthread: add evthread_get_{lock,condition}_callbacks() helpers (c0b34f6 Azat Khuzhin)
Code Improvements (core)
o util: make @sa const for evutil_socket_connect_() (a8d32c2 Azat Khuzhin)
Code Improvements (http)
o http: assert's that evbuffer_drain() success on connection reset (2185e63 Azat Khuzhin)
o http: introduce evhttp_request_free_() helper (22061ac Azat Khuzhin)
o http: introduce evhttp_is_request_connection_close() helper (6540da3 Azat Khuzhin)
Code Improvements (bufferevents)
o be_sock: bufferevent_socket_set_conn_address(): assert instead of silent no-op (0ab88c2 Azat Khuzhin)
o be_sock: sanity check in bufferevent_socket_set_conn_address() (eedbeff Azat Khuzhin)
o be: replace sockaddr_storage with sockaddr_in6 for conn_address (3889612 Azat Khuzhin)
o be: replace conn_address by full struct instead of pointer (e5615aa Azat Khuzhin)
o bufferevent: move conn_address out from http into bufferevent (8bb3842 Azat Khuzhin)
o be: make @sa const for bufferevent_socket_connect() (dc33c78 Azat Khuzhin)
Cleanups (core)
o Refactoring conditional directives that break parts of statements. (4b41eeb lzmths)
o epoll: introduce PRINT_CHANGES() macro to avoid copy-pasting (a1b142b Azat Khuzhin)
o tab (6e7a580 Greg Hazel)
Cleanups (evbuffers)
o buffer_compat: fix comment -- we have EVBUFFER_EOL_ANY not EOL_STYLE_ANY (575ff67 Azat Khuzhin)
Cleanups (bufferevents)
o be_sock: evutil_getaddrinfo_async_() always return 0 (dbff101 Azat Khuzhin)
o be_sock: drop be_sock_add() macro (useless and debug unfriendly) (fad5fe2 Azat Khuzhin)
o be: introduce bufferevent_generic_adj_existing_timeouts_() (3c1f58f Azat Khuzhin)
o be: add_event: use evutil_timerisset() (a96b73b Azat Khuzhin)
o be_openssl: introduce be_openssl_auto_fd() helper (2a8a711 Azat Khuzhin)
o be_openssl: introduce set_open_callbacks_auto() (510da71 Azat Khuzhin)
Cleanups (http)
o http: make fallback for EVHTTP_CON_READ_ON_WRITE_ERROR more cleaner (d405492 Azat Khuzhin)
o http: coding style issue (365f181 Azat Khuzhin)
Cleanups (evdns)
o evnds: inline TEST_NAME macro to make debuggin easier (0c615f4 Azat Khuzhin)
Portability Fixes
o [#372] check for errno.h (3031617 Mark Ellzey)
o Fixed Unicode issue in error messages. (e8b7895 Mattes D)
o Assume that ke_udata is an integer type on CloudABI. (5602e45 Ed Schouten)
o Add missing include of <netinet/in.h>. (b2c68bc Ed Schouten)
o Include <sys/ioctl.h>, <sys/resource.h> and <sys/wait.h> optionally. (c1404b5 Ed Schouten)
o Test against SO_REUSEADDR (along with _WIN32). (ce1776c Ed Schouten)
o Always define missing TAILQ functions from sys/queue.h (2828bdb Christopher Wiley)
o Don't use BSD u_* types. (fd36647 Ed Schouten)
o Remove BSD-ism: TIMEVAL_TO_TIMESPEC(). (193c7de Ed Schouten)
o be: include all variations of headers for sockaddr_in6 struct (c212291 Azat Khuzhin)
o be: fix sockaddr_in6 type definition for win32 (c42bc6b Azat Khuzhin)
Continious Integration:
o travis: split long lines, and make it cleaner (685a6a1 Azat Khuzhin)
o travis: fix autotools on osx by reinstalling libtool (088ea5e Azat Khuzhin)
o appveyor/autotools: link with openssl by passing LDFLAGS/CFLAGS (6fcfa25 Azat Khuzhin)
o appveyor: image already had openssl installed (4634b85 Azat Khuzhin)
o appveyor: check -DUNICODE -D_UNICODE according to ReleaseChecklist (cmake only) (e9acc44 Azat Khuzhin)
o appveyor: ignore failure of mingw-get (1810857 Azat Khuzhin)
o appveyor: drop shallow_clone, since we use tags for detecting version in cmake (ac90133 Azat Khuzhin)
o appveyor: support cmake & autotools using build matrix (like travis-ci has) (8f95015 Azat Khuzhin)
o travis-ci/osx: relink gcc/g++ instead of clang (481481d Azat Khuzhin)
o travis-ci: enable multi-os mode (osx, linux) (79917e4 Azat Khuzhin)
o travis-ci: increase matrix (--disable-foo) (59649f7 Azat Khuzhin)
o travis-ci: adjust alignment (c8be339 Azat Khuzhin)
o travis: add builds without debug mode into matrix (3e56da2 Azat Khuzhin)
o test: run regress with EVENT_DEBUG_MODE=1 and without (cf2cf2a Azat Khuzhin)
o Update travis config for status updates (37453ab Mark Ellzey)
o Use autotools for appveyor until cmake is fixed. (1cc2e29 Mark Ellzey)
o Fix the link for appveyor OpenSSL installer (WIN32) (107d565 Mark Ellzey)
o Forgot to install OpenSSL for appveyor (26164a5 Joakim Söderberg)
o Add support for appveyor.com windows CI (5f89c37 Joakim Söderberg)
Build Improvements/Fixes:
o evutil: mark ai_find_protocol() static (prototype-less) (5a157c8 Azat Khuzhin)
o cmake/solaris: set CMAKE_REQUIRED_LIBRARIES to fix functions detections (dc95823 Azat Khuzhin)
o cmake/solaris: fix building (link with socket,nsl) (050bfc7 Azat Khuzhin)
o cmake: check for ZLIB_INCLUDE_DIR, since we can have only library without headers (c4dfb93 Azat Khuzhin)
o autotools/win32: fix searching ssl library (671a24f Azat Khuzhin)
o cmake/win32: do not compile regress_thread on -DEVENT__DISABLE_THREAD_SUPPORT=ON (de0c196 Azat Khuzhin)
o cmake/win32: do not compile evthread_win32 on -DEVENT__DISABLE_THREAD_SUPPORT=ON (ecb0ec8 Azat Khuzhin)
o cmake: fix -DEVENT__ENABLE_VERBOSE_DEBUG (typo on -DUSE_DEBUG) (e35f224 Azat Khuzhin)
o cmake: do not use stderr for notifications/version-info (38716c6 Azat Khuzhin)
o autoconf: fix --disable-thread-support build under win32 (bb09535 Azat Khuzhin)
o buffer: don't mix code and declarations (8892f4c Azat Khuzhin)
o Update gitignore file to ignore cscope gen'ed files (0aaa4fb Neeraj Badlani)
o For non GCC/clang on OSX the -Wno-deprecated-declarations may not be valid (b5ca365 Rainer Keller)
o automake: define serial-tests only if automake have this option (61179de Azat Khuzhin)
o test/automake: don't use paralell test harness (since automake 1.12) (44d755e Azat Khuzhin)
o Ignore all pkgconfig generated stuff (ce38993 Azat Khuzhin)
o libevent_core and libevent_extra also deserve a pkgconfig file (b8d7c62 Jan Heylen)
o Ignore verify_tests.bat (win32 version) (0f2de10 Azat Khuzhin)
o cmake: require 3.1 only for win32 to make it work under ubunty precise (87f7238 Azat Khuzhin)
o cmake: require at least 3.1 for target_sources() (c46ead5 Azat Khuzhin)
o cmake: fix adding of compiler flags, and now it will (36588e1 Azat Khuzhin)
o Replace -Wswitch-enum with -Wswitch, and add it into cmake rules too (f29f59e Azat Khuzhin)
o test/regress_ssl: Fix compile problems for win32 (73d0360 Trond Norbye)
o util: fix "%zu" format on TDM-gcc/MinGW-w64 (79b69d8 Azat Khuzhin)
o cmake: don't define EVENT__NEED_DLLIMPORT always (fixes VS2013 static build) (49bd790 Azat Khuzhin)
o Add missing return statement to del_wait_thread so libevent can build. (4f778ab Nick Mathewson)
o cmake: fix building dns-example under win32 (missing getopt) (a1609a8 Azat Khuzhin)
o visibility: align it to make it more readable (bb6b53d Azat Khuzhin)
o cmake: Fix detection of ssize_t/SSIZE_T (7707f6b Azat Khuzhin)
o Ignore more configure stuff (configure.lineno) (8d34302 Azat Khuzhin)
o Fixed issue with cmake version generation (d56efd9 Mark Ellzey)
o Cmake is now officially working. (7f9646d Mark Ellzey)
o More cmake updates, lot's of missing definitions (49a5381 Mark Ellzey)
o CMake syntax fixes fo .in files (6aad23d Mark Ellzey)
o Revert "The Windows socket type is defined as SOCKET." (a264da8 Mark Ellzey)
o CMAKE CMAKE CMAKE CLEANUPS (a9db46a Mark Ellzey)
o Lot's of cmake updates (8b228e2 Mark Ellzey)
o Provide a mechanism for building the library on Windows with different compiler flags. Add a batch file that builds it for the M[DT][d] options and performs a hunt and gather of the different output libraries. (ded8086 billsegall)
o The Windows socket type is defined as SOCKET. (c9e6c3d billsegall)
o autotools: fix getservbyname() detection (959a4c2 Azat Khuzhin)
o Add missing <string.h> for openssl_hostname_validation module (3316a21 Azat Khuzhin)
o make test/regress_ssl.c compile without warnings (9f02a44 Thomas Bernard)
o test/regress_be: drop debug __asm__(int3) to fix arm build (8240379 Azat Khuzhin)
o event_debug_created_threadable_ctx_: fix compilation without debug mode (a068f2e Azat Khuzhin)
o Add a prototype for event_disable_debug_mode() (bfcedee Sebastian Hahn)
o http: eliminate warning about "socklen" in evhttp_connection_connect_() (dfad1a4 Azat Khuzhin)
o Updated gitignore (1dbb55d Mark Ellzey)
o Update bench_httpclient.c (cb96931 Seungmo Koo)
o *fix: bench_httpclient to support win32 (4e9325e zeliard)
o Commented out a WIN32 threading / timing test for now (e84e269 Mark Ellzey)
o Fix mixed declarations and code (forbidden by ISO C90) (0c7f217 Thomas Bernard)
o Fix "function declaration isn’t a prototype" (746d2c5 Thomas Bernard)
o This fixes a bug introduced in 27bd9faf498b91923296cc91643e03ec4055c230 (19ba454 Joakim Söderberg)
o changed strtotimeval signature as per #211 (bdbc823 Xiao Bao Clark)
o Added cmake-generated files to ignore list. (6c12bfe Matyas Dolak)
o Ignore `make dist` generated files (8a2c6c7 Azat Khuzhin)
Debugging
o Debug mode option to error on evthread init AFTER other event calls. (dcfb19a Mark Ellzey)
Changes in version 2.1.5-beta (5 January 2015)
Security Fixes (evbuffers)
o Avoid integer overflow bugs in evbuffer_add() and related functions. See CVE-2014-6272 advisory for more information. (d49bc0e88b81a5812116074dc007f1db0ca1eecd)
New APIs (evconnlistener)
o Provide support for SO_REUSEPORT through LEV_OPT_REUSABLE_PORT (b625361 Maciej Soltysiak)
Bugfixes (core)
o Fix use-after-free error in EV_CLOSURE_EVENT callback (3cc0eac John Ohl)
o Fix race caused by event_active (3c7d6fc vjpai)
Bugfixes (evbuffer)
o Fix evbuffer_peek() with len==-1 and start_at non-NULL. (ba59923)
o Consistently check for failure from evbuffer_pullup() (60f8f72)
o Fix evbuffer_peek() with len==-1 and start_at non-NULL. (fb7e76a)
Bugfixes (windows, IOCP)
o be async: avoid double close() (f133b86 Azat Khuzhin)
Bugfixes (bufferevents)
o Fix issue #127, double free for filterevents that use BEV_OPT_CLOSE_ON_FREE (2c82aa0 John Ohl)
o make bufferevent_getwatermark api more robust (a21e510 ufo2243)
o [Bugfix] fix bufferevent setwatermark suspend_read (b34e4ac ufo2243)
o bufferevent_openssl: reset fd_is_set when setfd with -1 is called (3da84c2 Azat Khuzhin)
o Fix compilation for older OpenSSL versions. (5c7282f Joakim Soderberg)
New APIs (evhttp)
o Add evhttp_connection_set_family() to set addrinfo->family for DNS requests (12c29b0 Azat Khuzhin)
o Implement interface that provides the ability to have an outbound evhttp_connection free itself once all requests have completed (2b9ec4c,10fe4f John Ohl)
New APIs (core)
o Implement new/free for struct evutil_monotonic_timer and export monotonic time functions (f2645f8 Andrea Shepard)
Bugfixes (evdns)
o Load hosts file on Windows. (a0b247c Vilmos Nebehaj)
o Don't truncate hosts file path on Windows. (d0dc861 Vilmos Nebehaj)
o Fix a crash in evdns related to shutting down evdns (9f39c88,e8fe749)
o evdns: avoid read-after-free in evdns_request_timeout_callback() (61262a0 Azat Khuzhin)
o Correctly handle allocation failures in evdns_getaddrinfo (6a53d15)
o evdns: fix EVDNS_BASE_DISABLE_WHEN_INACTIVE in case retransmit/retry (74d0eee Azat Khuzhin)
o evdns: add retry/reissue tests for EVDNS_BASE_DISABLE_WHEN_INACTIVE (3ca9d43 Azat Khuzhin)
o evdns: fail ns after we are failing/retrasmitting request (97c750d Azat Khuzhin)
Bugfixes (evhttp)
o http: reset connection before installing retry timer (fix http retries handling) (bc79cc5 Azat Khuzhin)
Testing
o regress_dns: fix leaks in getaddrinfo_async{,_cancel_stress} tests (2fdc5f2 Azat Khuzhin)
o test: add family argument for http_connection_test_() (177b8a7 Azat Khuzhin)
o test: add regress for evhttp_connection_set_family() with AF_INET and AF_UNSPEC (42aefeb Azat Khuzhin)
o test/http: add regress test for set family to AF_INET6 (3fbf3cc Azat Khuzhin)
o Update to a more recent tinytest_macros. (8da5a18)
o test/regress: add simplestsignal: to track reorder bugs separately (b897bef Azat Khuzhin)
o test/evbuffer_peek: add regress in case we have first buffer greater (e2d139d Azat Khuzhin)
o More evbuffer_peek() test cases (154006a)
o use correct tt macro for pointer compare (08c88ea)
o regress_buffer: fix 'memcmp' compare size (79800df Maks Naumov)
o Fix a use-after-free in unit tests. CID 752027 (3739057)
o Fix a dead-code warning in unit tests. CID 1193548 (c119f24)
o Use evutil_weakrand() in unit tests. (a677b72, 364c110)
o Use a more precise calculation for max in time-ratelim.c (ca5b5c7)
o Make a buffer larger in the tests to avoid a scary evbuffer_copyout_from() (fb57b8b)
o Fix several memory leaks in the unit tests. (89c1a3b)
o Add test for evhttp_connection_free_on_completion (b0e9924 John Ohl)
o Fix annoying heisenbug in test-time.c (cb73704)
Sample code
o Make http-server.c output into good html5 (6d72bdc)
o Use FindClose for handle from FindFirstFile in http-server.c (6466e88)
o https-client: add -retries argument, for connection retries (d9da844 Azat Khuzhin)
Bugfixes (build)
o Add missing headerfile for cmake (15d90cc Trond Norbye)
o ignore one more test binary (b6593aa Michael Richardson)
o ignore config.cache/test-driver files (c83f333 Mike Frysinger)
o add a --disable-samples configure flag (0c492b3 Mike Frysinger)
o Add a few files created by "make verify" to .gitignore. (1a8295a Pierre Phaneuf)
o updates in cmake build (27bd9fa Sergey Nikulov)
o Fix cmake error when the Module path has more than one entry. (befbd13 Acer Yang)
o Fix CMake shared library build (e69d910 Nobuaki Sukegawa)
o Fix warnings when compiling with clang 3.5 (f5b4765 John Ohl)
o Fix mixed declarations and code (forbidden by ISO C90) (8afbdbc Thomas Bernard)
Bugfixes (miscellaneous)
o tree.h: drop duplicated content of tree.h (6193187 Azat Khuzhin)
o evdns: disable probing with EVDNS_BASE_DISABLE_WHEN_INACTIVE (610410b,ad0493e,fea86a6,d83b337,5ca9e97 Azat Khuzhin)
o [Bugfix] fix grammer error (3a4d249 ufo2243)
o Change return type of evutil_load_windows_system_library_ to HMODULE (f691389)
o Fix a c90 warning (76643dd)
o Fix a typo in a doxygen comment. Reported by 亦得. (be1aeff)
o remove trailing comma from enum (b361b8a Jean-Philippe Ouellet)
Bugfixes (FreeBSD)
o Handle ENOTCAPABLE from FreeBSD - this is returned if an event in the changelist is for an FD that has been closed. (6fd7394 Adrian Chadd)
Changes in version 2.1.4-alpha (21 Mar 2014)
Libevent 2.1.4-alpha adds a number of new miscellaneous APIs to make
Libevent more useful, including support for early close detection with
epoll via EPOLLRDHUP, triggering bufferevent callbacks, adding more
evhttp callbacks, and more. There are also numerous bugfixes, including
a number for finalize-related issues from 2.1.3-alpha; and an
alternative (non-primary!) cmake-based build mechanism.
New APIs (core)
o Added event_base_get_num_events() (0fa107d Mobai Zhang)
o New event_base_active_by_fd API (865a142 Greg Hazel, 5c9da9a, 87fa2b0)
o Add event_base_active_by_signal by analogy (4865943)
o Add access to max event count stats (5173bef, efbd3dc, 26230a2
Andrew Sweeney)
o Implemented EV_CLOSED event for epoll backend
(EPOLLRDHUP). (b1b69ac Diego Giagio, 53d2793, 43ffcf6, dfe1e52
Marcin Juszkiewicz, ff26633 Joakim Soderberg, 3908a5e)
New APIs (evutil_secure_rng)
o Add evutil_secure_rng_set_urandom_device_file (2bbb5d7)
New APIs (bufferevents)
o Add function to fetch underlying ratelimit cfg (4b3d5af Mark Ellzey)
o Pass and return const for bufferevent_get_token_bucket_cfg (1c77fbb
Mark Ellzey)
o Add watermark introspection (4ce242b Ondřej Kuzník)
o Add an option to trigger bufferevent I/O callbacks (61ee18b Ondřej Kuzník)
o Add an option to trigger bufferevent event callbacks (a7384c7
Ondřej Kuzník)
o Clarifications in response to merge req. comments (bd41947 Ondřej
Kuzník)
o Minor optimizations on bufferevent_trigger options (a3172a4)
New APIs (evhttp)
o Add evhttp_connection_get_server(). (a7f82a3 Maxime Henrion)
o add a http default content type option (5a5acd9 Nicolas Martyanoff)
o http: implement new evhttp_connection_get_addr() api. (0c7f040 Azat
Khuzhin)
o Add a variant of evhttp_send_reply_chunk() with a callback on
evhttp_write_buffer() (8d8decf Julien BLACHE)
o Allow registering callback for parsing HTTP headers (b0bd7fe Balint Reczey)
o Provide on request complete callback facility (b083ca0 Andrew Sweeney)
o evhttp_request_set_on_complete_cb to be more specific about what
the function actually does and usage (da86dda Andrew Sweeney)
o Update unit test to make sure that the callback happens after the
output data is written (b85f398 Andrew Sweeney)
Features (evdns)
o bug fix for issues #293 evdns_base_load_hosts doesn't remove
outdated addresses (954d2f9, f03d353, 45eba6f Kuldeep Gupta)
Features: (cmake build support)
o Initial CMake commit. (e415196 Joakim Soderberg)
o Add all tests and benchmarks to CMake project. (e9fc014 Joakim Soderberg)
o More work on adding tests to CMake project (99c1dc3 Joakim Soderberg)
o Generate a dummy evconfig-private.h so things build
properly. (ce14def Joakim Soderberg)
o Link libm on unix platforms. (58fcd42 Joakim Soderberg)
o Added some GCC specific options. (19222e5 Joakim Soderberg)
o Use evutil_closesocket instead. (dbf2b51 Joakim Soderberg)
o Add copyright and licensing files for CMake modules. (c259d53
Joakim Soderberg)
o Only include WIN32 getopt where it is used. (9bbce0b Joakim Soderberg)
o Fix bench_cascade program on Windows. (78da644 Joakim Soderberg)
o Don't segfault on no found event backend. (8f2af50 Joakim Soderberg)
o Only test the event backends available on the system. (7ea4159
Joakim Soderberg)
o Added a "make verify" target. (e053c4f Joakim Soderberg)
o Fix the make "verify" target on Windows. (67e5d74 Joakim Soderberg)
o Get rid of deprecation warnings for OpenSSL on OSX 10.7+ (69c3516
Joakim Söderberg)
o Fix kqueue support. (a831f2f Joakim Söderberg)
o Added a test for testing if kqueue works with pipes. (2799b35
Joakim Söderberg)
o Change the BSD license from 4 to 3-clause. (86df3ed Joakim Soderberg)
o Minimum required python version is 2.4. (968e97b Joakim Soderberg)
o Get rid of unknown pragma warnings. (0ef1d04 Joakim Soderberg)
o Add a "make verify_coverage" target generation coverage
info. (f2483f8 Joakim Soderberg)
o Fix the "make verify" target on NetBSD (4ac086a Joakim Soderberg)
o Only look for ZLib when it is used (if tests are
included). (f780593 Joakim Soderberg)
o Added EVENT__ENABLE_GCC_WARNINGS, turns all warnings into
errors. (dd413bd Joakim Soderberg)
o Add CMake config and install targets. (f3446ed Joakim Soderberg)
o Fix typo (4b754df Joakim Soderberg)
o Some work on making it possible to simply do add_subdirectory() on
the project. (49ab363 Joakim Soderberg)
o Set USE_DEBUG=1 on EVENT__ENABLE_VERBOSE_DEBUG (fd42e70 Joakim Soderberg)
o Fix so that old nmake project still builds. (24d6466 Joakim
Soderberg)
o Rename README to README.md and use markdown to format. (d2bc39a
Joakim Soderberg)
o Update README with CMake build instructions. (604b8cc Joakim Soderberg)
o Clean up the README some. (8d4cb35 JoakimSoderberg)
o Forgotten headers for old nmake project compatability. (8697b99
Joakim Soderberg)
o Change all uses of WIN32 to _WIN32 (4e14395 Joakim Söderberg)
o Fix include bug. (2024467 Joakim Söderberg)
o Check if we're on OSX before disabling deprecation in le-proxy
(8b40a5b Joakim Söderberg)
o Fix broken autotools build. (ae1bd82 Joakim Söderberg)
o Disclaimerize cmake a little in the README (d03b5bf)
o Fix CMake compile when OpenSSL is disabled. (e423d42 Joakim
Söderberg)
o CMake: Get rid of python not found warning when regress tests
turned off. (d38d798 Joakim Söderberg)
o Fix https-client compilation on Windows. (d7be788 Joakim Soderberg)
o Guard against EVENT_NOWIN32 being set during testing. (f1715b4
Joakim Soderberg)
o Check for OSX when checking for clang. (e212c54 Joakim Soderberg)
o Added a Travis-CI configuration file. (8c0f0a9 Joakim Soderberg)
o Added -Qunused-arguments for clang on macosx (ed99d92 Trond Norbye)
o Rename event_extras to event_extra (a0dd5df Trond Norbye)
o Add option to build shared library (4545fa9 Trond Norbye)
o Add -Qunused-arguments for clang on macos (b56611d Trond Norbye)
o Add cmake-related files to .gitignore (e061321 Trond Norbye)
o Export event_extra not event_extras. (2b41bcf Joakim Söderberg)
Bugfixes (core)
o If evsel->del() fails, don't leave the evmap in an inconsistent
state (9b5a527 Maxime Henrion)
o Move event_debug_note_teardown_ before mm_free. (69b5c64)
o Check CLOCK_MONOTONIC_* at runtime if needed. (911abf3)
o Fix reinit of fds with EV_WRITE but not EV_READ. (ebfd8a8 maksqwe)
o Tweaked callbacks to prevent race condition
(https://github.com/libevent/libevent/issues/104) (40830f1, 2ea15ed
John Ohl)
o Move assert(ev) to before we use ev in EV_CLOSURE_EVENT_FINALIZE
case (9805972)
Bugfixes (evhttp)
o Fix a double close() bug in evhttp when the underlying bufferevent uses
BEV_OPT_CLOSE_ON_FREE. (31db8a0 Maxime Henrion)
o Fix an unlikely but possible error case for http connections (f22049e)
o Avoid racy bufferevent activation (5eb1788 Nate Rosenblum)
Bugfixes on 2.0 (Windows)
o Use windows vsnprintf fixup logic on all windows environments (e826f19)
o libevent/win32_dealloc() : fix sizeof(pointer) vs sizeof(*pointer)