This repository has been archived by the owner on Oct 29, 2024. It is now read-only.
forked from apache/httpcomponents-core
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathRELEASE_NOTES.txt
1669 lines (1151 loc) · 68.4 KB
/
RELEASE_NOTES.txt
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
Release 4.4.9
-------------------
This is a maintenance release that fixes a number of issues discovered since 4.4.8 ands a few low-level methods.
Changelog
-------------------
* HTTPCORE-494: Add image constants to ContentType.
Contributed by Gary Gregory <ggregory at apache.org>
* HTTPCORE-496: Add API org.apache.http.protocol.UriPatternMatcher.entrySet().
Contributed by Gary Gregory <ggregory at apache.org>
* HTTPCORE-497: Add API org.apache.http.nio.protocol.UriHttpAsyncRequestHandlerMapper.getUriPatternMatcher().
Contributed by Gary Gregory <ggregory at apache.org>
* HTTPCORE-499: Make interface Header extend NameValuePair.
Contributed by Gary Gregory <ggregory at apache.org>
* HTTPCORE-502: Add APIs to DefaultHttpServerIODispatch to get its connection factory and handler.
Contributed by Gary Gregory <ggregory at apache.org>
* HTTPCORE-503: Add APIs to DefaultHttpClientIODispatch to get its connection factory and handler.
Contributed by Gary Gregory <ggregory at apache.org>
* HTTPCORE-504: Update DefaultHttpClientIODispatch constructor to type for subclasses of DefaultNHttpClientConnection (like DefaultHttpServerIODispatch.)
Contributed by Gary Gregory <ggregory at apache.org>
* HTTPCORE-505: Make org.apache.http.nio.protocol.HttpAsyncService instance variables available through getters.
Contributed by Gary Gregory <ggregory at apache.org>
* HTTPCORE-506: Add generics to DefaultHttpClientIODispatch to specify the NHttpClientEventHandler implementation type.
Contributed by Gary Gregory <ggregory at apache.org>
* HTTPCORE-507: Add generics to DefaultHttpServerIODispatch to specify the NHttpServerEventHandler implementation type.
Contributed by Gary Gregory <ggregory at apache.org>
Release 4.4.8
-------------------
This is a maintenance release that fixes a number of issues discovered since 4.4.7.
Changelog
-------------------
* HTTPCORE-492: Make org.apache.http.nio.protocol.ErrorResponseProducer public.
Contributed by Gary Gregory <ggregory at apache.org>
* HTTPCORE-493: Make org.apache.http.nio.protocol.HttpAsyncService.responseFactory available to subclasses.
Contributed by Gary Gregory <ggregory at apache.org>
* HTTPCORE-491: Make BasicAsyncRequest|ResponseConsumer more paranoid
Contributed by Michael Heemskerk <mheemskerk@atlassian.com>
* HTTPCORE-490: session requests do not get cancelled correctly if the associated HTTP response futures get cancelled
Contributed by Oleg Kalnichevski <olegk at apache.org>
Release 4.4.7
-------------------
This is a maintenance release that fixes a number of issues discovered since 4.4.6.
Changelog
-------------------
* HTTPCORE-487: org.apache.http.nio.reactor.ssl.SSLIOSession and SSLNHttpClientConnectionFactory
do not always use the HTTP host setting.
Contributed by Oleg Kalnichevski <olegk at apache.org>
* HTTPCORE-485: Reduce memory footprint of non-blocking SSL sessions by 25%.
Contributed by Todor Bonchev <31352118+TodorBonchev at users.noreply.github.com>
* HTTPCORE-483: back-ported SSL session termination bug fix from 5.x.
Contributed by Oleg Kalnichevski <olegk at apache.org>
* Fixed a race condition in message exchange state synchronization during an expect-continue handshake.
Contributed by Oleg Kalnichevski <olegk at apache.org>
* HTTPCORE-481: async request executor to treat non-error (status >= 200 and status < 400)
out of sequence responses as valid.
Contributed by Oleg Kalnichevski <olegk at apache.org>
* HTTPCORE-472: Fixed problem with blocking message parsers incorrectly throwing "Maximum line
length limit exceeded" exception in some corner cases.
Contributed by Oleg Kalnichevski <olegk at apache.org>
* HTTPCORE-463: Fixed incorrect use of connect timeout setting in AbstractNIOConnPool.
Contributed by Oleg Kalnichevski <olegk at apache.org>
* HTTPCORE-455: fatal Error in an individual worker thread does not cause proper I/O reactor shutdown.
Contributed by Oleg Kalnichevski <olegk at apache.org>
* HTTPCORE-487: org.apache.http.nio.reactor.ssl.SSLIOSession and SSLNHttpClientConnectionFactory
do not always use the HTTP host setting.
Contributed by Gary Gregory <ggregory at apache.org> and Oleg Kalnichevski <olegk at apache.org>
* HTTPCORE-450: Add a Provider parameter in SSLContextBuilder.
Contributed by lujianbo <387852424 at qq dot com>, Gary Gregory <ggregory at apache.org>
* HTTPCORE-456: BasicFuture fails to honor Future interface contract by not throwing
CancellationException when cancelled.
Contributed by Oleg Kalnichevski <olegk at apache.org>
* HTTPCORE-455: fatal Error in an individual worker thread does not cause proper I/O reactor
shutdown.
Contributed by Oleg Kalnichevski <olegk at apache.org>
* HTTPCORE-460: Add factory methods to DefaultHttpClientIODispatch to handle a null SSLContext.
Contributed by Gary Gregory <ggregory at apache.org>
* HTTPCORE-461: Add factory methods to DefaultHttpServerIODispatch to handle a null SSLContext.
Contributed by Gary Gregory <ggregory at apache.org>
* HTTPCORE-462: Deprecate SSLContextBuilder.useProtocol(String) in favor a new method setProtocol(String).
Contributed by Gary Gregory <ggregory at apache.org>
* HTTPCORE-464: org.apache.http.nio.protocol.HttpAsyncService does not always log exceptions.
Contributed by Gary Gregory <ggregory at apache.org>
* HTTPCORE-465: Update example NHttpReverseProxy to support SSL to origin servers which use self-signed certificates.
Contributed by Gary Gregory <ggregory at apache.org>
* HTTPCORE-466: Round out the SslContextBuilder by adding missing APIs.
Contributed by Gary Gregory <ggregory at apache.org>
* HTTPCORE-468: Allow HttpAsyncService subclasses to customize the HTTP status code.
Contributed by Gary Gregory <ggregory at apache.org>
* HTTPCORE-470: Add a org.apache.http.nio.protocol.NullRequestHandler singleton.
Contributed by Gary Gregory <ggregory at apache.org>
* HTTPCORE-446: fixed deadlock in AbstractConnPool shutdown code.
Contributed by Oleg Kalnichevski <olegk at apache.org>
* HTTPASYNC-116: Remove cancelled lease requests from the request queue when validating
pending requests.
Contributed by Oleg Kalnichevski <olegk at apache.org>
* HTTPCLIENT-1808: Fixing potential overflow for connection TTL
Contributed by Andrew Shore <shorea at amazon.com>
* HTTPCORE-442: Non-blocking SSL sessions fail to decrypt buffered input data in some cases
if closed by the opposite endpoint
Contributed by Oleg Kalnichevski <olegk at apache.org>
Release 4.4.6
-------------------
This is a maintenance release that fixes a number of issues discovered since 4.4.5.
Changelog
-------------------
* [HTTPCORE-429] NIO connection pool incorrectly reports the number of pending connections
per individual route.
Contributed by Oleg Kalnichevski <olegk at apache.org>
* [HTTPCORE-433] moved expensive connection validation code outside the pool lock.
Contributed by Oleg Kalnichevski <olegk at apache.org>
* [HTTPCORE-435] ConnectionConfig#copy() does not copy every field.
Contributed by Clement Pellerin <clement_pellerin at ibi.com>
* [HTTPCORE-434] Handling of HEAD responses without payload headers.
Contributed by Oleg Kalnichevski <olegk at apache.org>
* [HTTPCORE-431] correct character encoding default for application/json.
Contributed by Oleg Kalnichevski <olegk at apache.org>
* [HTTPCORE-428] SSLIOSession#close to handle CancelledKeyException.
Contributed by Oleg Kalnichevski <olegk at apache.org>
* [HTTPCORE-427] SSL i/o sessions to use a finite timeout for SSL shutdown handshake when closing.
Contributed by Oleg Kalnichevski <olegk at apache.org>
* [HTTPCORE-422] HttpAsyncResponseConsumer#onEntityEnclosed is triggered for HEAD responses.
Contributed by Oleg Kalnichevski <olegk at apache.org>
* [HTTPCORE-423] Fixed MIME type validation in ContentType#create(String) method.
Contributed by Oleg Kalnichevski <olegk at apache.org>
Release 4.4.5
-------------------
This is a maintenance release that fixes a number of issues discovered since 4.4.4.
Please note the following annotations originally based on CC-BY licensed source have been removed
in this release:
org.apache.http.annotation.GuardedBy
org.apache.http.annotation.Immutable
org.apache.http.annotation.NotThreadSafe
org.apache.http.annotation.ThreadSafe
Changelog
-------------------
* [HTTPCLIENT-1743] remove dependency on CC-BY licensed source
Contributed by Oleg Kalnichevski <olegk at apache.org>
* [HTTPCORE-420] Blocking HttpServer does not close out persistent connection when shut down
Contributed by Oleg Kalnichevski <olegk at apache.org>
* Support 64-bit chunk headers
Contributed by Dmitry Potapov <dpotapov at yandex-team.ru>
* Fixed race condition in request initialization code and #endOfInput method in async client
protocol handlers
Contributed by Oleg Kalnichevski <olegk at apache.org>
* [HTTPCORE-417] SSLIOSession#writePlain incorrectly handles closed channel condition leading
to an infinite loop
Contributed by Oleg Kalnichevski <olegk at apache.org>
* [HTTPCORE-416] DefaultConnectingIOReactor to treat failure to open a channel for a new outgoing
connection as a recoverable request failure
Contributed by Oleg Kalnichevski <olegk at apache.org>
* PATCH method support
Contributed by Ömer Özkan <omer at ozkan.info>
Release 4.4.4
-------------------
This is a maintenance release that fixes a number of issues discovered since 4.4.3.
Please note that as of 4.4 HttpCore requires Java 1.6 or newer.
Changelog
-------------------
* [HTTPCORE-410] PoolStats made Serializable
Contributed by Oleg Kalnichevski <olegk at apache.org>
* BufferedHttpEntity to use HttpEntity#writeTo when buffering non-repeatable entities
Contributed by Oleg Kalnichevski <olegk at apache.org>
* Fixed race condition in request initialization code in async client protocol handlers
Contributed by Oleg Kalnichevski <olegk at apache.org>
* Fixed handling of pipelined HEAD requests
Contributed by Oleg Kalnichevski <olegk at apache.org>
* [HTTPCORE-409] NIO HttpServer does not shutdown listener ExecutorService
Contributed by Hiranya Jayathilaka <hiranya at apache.org>
Release 4.4.3
-------------------
This is a maintenance release that fixes a regression introduced by release 4.4.2.
Please note that as of 4.4 HttpCore requires Java 1.6 or newer.
Changelog
-------------------
* Fixed regression introduced by HTTPCORE-399.
Contributed by Oleg Kalnichevski <olegk at apache.org>
Release 4.4.2
-------------------
This maintenance release fixes a bug in HTTP request pipelining code discovered
after 4.4.1 release.
Please note that as of 4.4 HttpCore requires Java 1.6 or newer.
Changelog
-------------------
* Throw ConnectionClosedException instead of IllegalStateException if an attempt is made to
use a closed (not bound to a socket) blocking connection.
Contributed by Oleg Kalnichevski <olegk at apache.org>
* [HTTPCORE-399] Non-blocking client connections incorrectly suspend output causing
sequential execution of requests.
Contributed by Oleg Kalnichevski <olegk at apache.org>
Release 4.4.1
-------------------
This maintenance release fixes a number of minor bugs found since 4.4.
Please note that as of 4.4 HttpCore requires Java 1.6 or newer.
Changelog
-------------------
* [HTTPCORE-396]: PrivateKeyStrategy does not work with NIO SSL.
Contributed by Oleg Kalnichevski <olegk at apache.org>
* [HTTPCORE-395]: VersionInfo#getUserAgent reports incorrect Java version.
Contributed by Michael Osipov <michaelo at apache.org>
* Non-blocking connection should not trigger end-of-stream callback as long as there is still
data in the session input buffer. This can cause a series of short pipelined requests to
fail prematurely in case of an unexpected connection termination by the opposite endpoint.
Contributed by Oleg Kalnichevski <olegk at apache.org>
Release 4.4
-----------------
This is the first stable (GA) release of HttpCore 4.4. Notable features included in
the 4.4 series are:
* Support for pipelined request processing on the server side
* Support for pipelined request execution on the client side
* Simplified bootstrapping of blocking and non-blocking (NIO) HTTP server implementations
* Inclusion of SSL context initialization utilities from HttpClient
Please note that as of 4.4 HttpCore requires Java 1.6 or newer.
Changelog
-------------------
* Performance optimizations
Contributed by Dmitry Potapov <dpotapov at yandex-team.ru>
* Update Apache Commons Logging version from 1.1.3 to 1.2.
Contributed by Gary Gregory <ggregory at apache.org>
Release 4.4-BETA1
-------------------
This is the first BETA release from 4.4 release series. Notable features included in
the 4.4 series are:
* Support for pipelined request processing on the server side
* Support for pipelined request execution on the client side
* Simplified bootstrapping of blocking and non-blocking (NIO) HTTP server implementations
* Inclusion of SSL context initialization utilities from HttpClient
* New HTTP element tokenizer implementation
Please note that as of 4.4 HttpCore requires Java 1.6 or newer.
Release 4.4-ALPHA1
-------------------
This is the first release from the 4.4.x development branch. The most notable features included in
this release are:
* Support for pipelined request processing on the server side
* Support for pipelined request execution on the client side
* Simplified bootstrapping of blocking and non-blocking (NIO) HTTP server implementations
This release also includes all fixes from the stable 4.2.x release branch.
Changelog
-------------------
* [HTTPASYNC-77] system resources are not correctly deallocated if I/O reactor is shut down
while still inactive (not started)
Contributed by Oleg Kalnichevski <olegk at apache.org>
* [HTTPCORE-377] Allow zero SO_LINGER (immediate abortive close).
Contributed by Dmitry Potapov <potapov.d at gmail.com>
* [HTTPCORE-376] AbstractNIOConnPool#requestCancelled() should not process pending requests
wnen being shut down.
Contributed by Dmitry Potapov <potapov.d at gmail.com>
* [HTTPASYNC-69]: async request handler is closed by HttpAsyncRequestExecutor#closed
if the underlying connection is found to be in an inconsistent state.
Contributed by Oleg Kalnichevski <olegk at apache.org>
* [HTTPCORE-372] Blocking and non-blocking chunk decoders to throw an I/O exception if data stream
is terminated without a closing chunk.
Contributed by Dmitry Potapov <potapov.d at gmail.com>
* [HTTPCORE-368] Customizable buffer management strategies for SSLIOSession.
Contributed by offbynull <offbynull at gmail.com>
* [HTTPCORE-358] Added I/O reactor listener backlog parameter.
Contributed by Dmitry Potapov <potapov.d at gmail.com>
* [HTTPCORE-357] Avoid DNS lookups in SSLIOSession.
Contributed by Oleg Kalnichevski <olegk at apache.org>
* Update JUnit to version 4.11 from 4.9
Contributed by Gary Gregory <ggregory at apache.org>
Release 4.3.2
-------------------
This maintenance release fixes a number of bugs and regressions found since 4.3.1, mostly in the
NIO transport components. All users of HttpCore 4.3 are advised to upgrade.
Changelog
-------------------
* [HTTPCORE-371] Support for SSL re-negotiation with NIO.
Contributed by Asankha Perera <asankha at apache.org>
* [HTTPCORE-373] Out of sequence HTTP response causes NPE in HttpAsyncRequestExecutor.
Contributed by Oleg Kalnichevski <olegk at apache.org>
* [HTTPCORE-370] Race condition if connection request succeeds and times out at the same time.
Contributed by Oleg Kalnichevski <olegk at apache.org>
* (Regression) Fixed synchronization issue in blocking and non-blocking connection pool
implementations caused by HTTPCORE-362
Contributed by Oleg Kalnichevski <olegk at apache.org>
Release 4.3.1
-------------------
This maintenance release fixes a number of bugs and regressions found since 4.3, mostly in the
NIO transport components. All users of HttpCore 4.3 are advised to upgrade.
Changelog
-------------------
* [HTTPCORE-367] (Regression) Non-blocking connections can enter a tight loop while waiting
for a chunk header split across multiple TCP frames.
Contributed by Oleg Kalnichevski <olegk at apache.org>
* [HTTPCORE-366] Non-blocking SSLIOSession can enter an infinite loop if the underlying
channel receives incoming data simultaneously with inactivity timeout.
Contributed by Oleg Kalnichevski <olegk at apache.org>
* [HTTPCORE-364] IOSessionImpl.getLocalAddress() (etc.) creates unnecessary copy of channel
* DefaultConnectingIOReactor / DefaultListeningIOReactor do not correctly apply some initial
socket settings.
Contributed by Andreas Veithen <veithen at apache.org>
* [HTTPCORE-357] Avoid DNS lookups in SSLIOSessions in server mode.
Contributed by Isaac Cruz Ballesteros <icruzbal at gmail.com>
* [HTTPCORE-362] Purge pool per route map after closing out expired or idle connections with
#closeExpired and #closeIdle methods.
Contributed by Oleg Kalnichevski <olegk at apache.org>
* [HTTPCORE-361] Reduced intermediate garbage in HeaderGroup#getFirstHeader()
Contributed by Oleg Kalnichevski <olegk at apache.org>
* [HTTPCORE-355] HttpAsyncRequestExecutor fails when its handler is not ready to generate
a request.
Contributed by jd <j1234d2003 at yahoo.com>
* [HTTPCORE-354] BasicConnFactory don't use SocketConfig#isSoKeepAlive.
Contributed by David Ignjic <ignjic at gmail.com>
* [HTTPCORE-347] (Regression) HttpResponse#setStatusCode() does not update reason phrase.
Contributed by Oleg Kalnichevski <olegk at apache.org>
Release 4.3
-------------------
This is the first stable (GA) release of HttpCore 4.3. The most notable features in the 4.3
branch are:
* Deprecation of preference and configuration API based on HttpParams interface in favor of
constructor injection and plain configuration objects.
* Reliance on object immutability instead of access synchronization for thread safety.
Several old classes whose instances can be shared by multiple request exchanges have
been replaced by immutable equivalents.
The 4.3 branch also contains performance optimizations such as reduced TCP packet fragmentation
and more efficient lease / release operations for pools of persistent connections on the client
side.
This release also includes all fixes from the 4.2.x release branch.
Users of HttpCore 4.2 are encouraged to upgrade.
Changelog
-------------------
* [HTTPCORE-343] AbstractNIOConnPool to fire request callbacks outside the pool lock.
This makes it possible to re-enter pool methods from a callback event.
Contributed by Oleg Kalnichevski <olegk at apache.org>
* [HTTPCORE-340] AbstractNIOConnPool to support lease timeout distinct from connect timeout.
Contributed by Ignat Alexeyenko <ignatalexeyenko at gmail.com>
* Blocking connections do not clean session input buffer when closed (input data from a read
operation may still remain in the buffer if the connection is re-opened).
Contributed by Oleg Kalnichevski <olegk at apache.org>
Release 4.2.5
-------------------
This maintenance release fixes a number of bugs found in NIO components since 4.2.4. We advise
users of HttpCore NIO of all versions to upgrade.
This is likely to be the last release in the 4.2.x branch.
Changelog
-------------------
* [HTTPCORE-345] EntityAsyncContentProducer fails to release resources allocated by the underlying
entity when #produceContent is never invoked.
Contributed by Tad Whitenight <tadwhitenight at gmail.com>
* Non-blocking connection pool to avoid scanning the entire queue of pending connection requests
on each connection lease / release operation (under heavy load the request queue can contain
a significant number of pending requests, a full linear scan of which can cause massive
performance degradation).
Contributed by Oleg Kalnichevski <olegk at apache.org>
* Use bulk ByteBuffer#put method instead of single byte ByteBuffer#put
Contributed by Oleg Kalnichevski <olegk at apache.org>
* [HTTPCORE-336] Unhandled CancelledKeyException leads to a shutdown of the underlying IOReactor.
Contributed by Thomas Dudek <mail.dudek at gmail.com>
Release 4.3-BETA2
-------------------
This is the second BETA release from the 4.3.x release branch. This release addresses performance
issues in the non-blocking connection pool implementation and also includes a number of performance
improvements in the low level NIO based transport components.
Changelog
-------------------
* [HTTPCORE-300] ContentType to provide support for custom parameters.
Contributed by Oleg Kalnichevski <olegk at apache.org>
* Non-blocking connection pool to avoid scanning the entire queue of pending connection requests
on each connection lease / release operation (under heavy load the request queue can contain
a significant number of pending requests, a full linear scan of which can cause massive
performance degradation).
Contributed by Oleg Kalnichevski <olegk at apache.org>
* Basic connection pool implementations to perform default port resolution for HTTP and HTTPS
schemes.
Contributed by Oleg Kalnichevski <olegk at apache.org>
* Use bulk ByteBuffer#put method instead of single byte ByteBuffer#put
Contributed by Oleg Kalnichevski <olegk at apache.org>
* [HTTPCORE-336] Unhandled CancelledKeyException leads to a shutdown of the underlying IOReactor.
Contributed by Thomas Dudek <mail.dudek at gmail.com>
Release 4.3-BETA1
-------------------
This is the first BETA release from the 4.3.x release branch. The main theme of the 4.3 release
series is streamlining of component configuration and deprecation of the old configuration
API based on HttpParams in favor of constructor-based dependency injection and plain objects
for configuration parameters.
This release also includes performance optimizations intended to reduce TCP packet fragmentation
when writing out HTTP messages both in blocking and non-blocking I/O modes, which should result
in up to 20% higher throughput for short entity enclosing messages.
This release also includes all fixes from the stable 4.2.x release branch.
Changelog
-------------------
* Reduced TCP packet fragmentation when writing out message content with blocking and
non-blocking connections.
Contributed by Oleg Kalnichevski <olegk at apache.org>
* [HTTPCORE-330] Clarify InputStreamEntity length constructor argument.
Contributed by John McCarthy <jmsignup at gmail.com>
* [HTTPCORE-323] Undocumented UnsupportedCharsetException in ContentType#getOrDefault.
Contributed by Gary D. Gregory <ggregory at apache.org>
Release 4.2.4
-------------------
This maintenance release fixes a number of bugs found in NIO components since 4.2.3. We advise
users of HttpCore NIO of all versions to upgrade.
Changelog
-------------------
* [HTTPCORE-334] https request to a non-responsive but alive port over a non-blocking connection
results in a busy loop in one of I/O dispatch threads.
Contributed by Scott Stanton <snstanton at gmail.com>
* [HTTPCORE-331] BasicFuture no longer executes notification callbacks inside a synchronized block.
Contributed by Oleg Kalnichevski <olegk at apache.org>
* [HTTPCORE-319] Non-blocking SSLIOSession can fail to shut down correctly when the underlying
connection gets terminated abnormally by the opposite endpoint in case there is a truncated or
corrupted encrypted content in the input buffer and there is still data in the output buffer
that needs to be flushed out (most likely to occur with POST or PUT requests).
Contributed by Oleg Kalnichevski <olegk at apache.org>
Release 4.3-ALPHA1
-------------------
This is the first release from the 4.3.x release branch. The main focus of the 4.3 release
series is streamlining of component configuration and deprecation of the old configuration
API based on HttpParams in favor of constructor based dependency injection and plain objects
for configuration parameters.
We are kindly asking all upstream projects to review API changes and help us improve
the APIs by providing feedback and sharing ideas on dev@hc.apache.org.
This release also includes all fixes from the stable 4.2.x release branch.
Release 4.2.3
-------------------
This maintenance release fixes a number of bugs and found since 4.2.2 including
a major bug in the NIO module that can cause an infinite loop in SSL sessions under special
circumstances when the remote peer terminates the session in the middle of SSL handshake.
Please note this issue does not affect blocking I/O components used by HttpClient.
We advise users of HttpCore NIO of all versions to upgrade.
Changelog
-------------------
* [HTTPCORE-319, HTTPCORE-322] Non-blocking SSLIOSession can enter an infinite loop under
special circumstances when the remote peer terminates the session in the middle of SSL handshake.
Contributed by Paul Donohue <apache-jira at PaulSD.com> and
Oleg Kalnichevski <olegk at apache.org>
* [HTTPCORE-316] HeaderGroup#clone removes headers from the original object.
Contributed by Markus Thies <markus at dr-thies.com>
* [HTTPCORE-315] AbstractNIOConnPool fails to correctly deallocate connection if it is immediately
released from the session request callback causing a resource leak.
Contributed by Scott Stanton <snstanton at gmail.com>
* [HTTPCORE-313] ContentType#parse now ignores empty and blank charset attributes.
HttpEntityUtils#toString now throws checked I/O exception if it encounters an unsupported
charset.
Contributed by Oleg Kalnichevski <olegk at apache.org>
Release 4.2.2
-------------------
This is a maintenance release that fixes a number of bugs and regressions found since 4.2.1
including a major bug in the NIO module causing incorrect handling of outgoing Content-Length
delimited messages larger than 2GB.
Users of HttpCore 4.2 are advised to upgrade.
Changelog
-------------------
* [HTTPCORE-312] NIO length delimited content encoder incorrectly handles messages larger than 2GB.
Contributed by Oleg Kalnichevski <olegk at apache.org>
* [HTTPCORE-310] Fixed regression in DefaultConnectionReuseStrategy causing it to incorrectly
flag connections as non-reusable after a 204, 205 or 304 response.
Contributed by Oleg Kalnichevski <olegk at apache.org>
* [HTTPCORE-309] Fixed regression in HttpAsyncRequestExecutor causing it to handle 204, 205
and 304 responses incorrectly by returning a message with an enclosed content body.
Contributed by Oleg Kalnichevski <olegk at apache.org>
* [HTTPCORE-306] I/O reactor TCP_NODELAY parameter now defaults to true.
Contributed by Oleg Kalnichevski <olegk at apache.org>
* [HTTPASYNC-21] request execution handler does not get closed in case of a premature HTTP
exchange termination.
Contributed by Oleg Kalnichevski <olegk at apache.org>
* [HTTPCORE-303] ContentType made Serializable.
Contributed by Oleg Kalnichevski <olegk at apache.org>
Release 4.2.1
-------------------
This is a maintenance release that fixes a non-critical number of bugs found since 4.2.
Users of HttpCore 4.2 are encouraged to upgrade.
Changelog
-------------------
* [HTTPCORE-299] ContentType should rely on Charset#name() instead of Charset#toString()
for building header value.
Contributed by Oleg Kalnichevski <olegk at apache.org>
* [HTTPCORE-263] Under rare circumstances incorrectly delineated or garbled HTTP message
can cause an IndexOutOfBoundsException in AbstractSessionInputBuffer#readLine()
Contributed by Michael Pujos <bubbleguuum at free.fr>
* Made connection pools use FIFO algorithm instead of LIFO when leasing / releasing persistent
connections.
Contributed by Oleg Kalnichevski <olegk at apache.org>
* [HTTPCORE-298] Fixed non-blocking SSLIOSession state can getting out of sync with the underlying
IOSession in case the I/O session is terminated by the I/O reactor rather than by the protocol
handler.
Contributed by Sandeep Tamhankar <sandman at electric-cloud.com>
* Fixed NPE in StringEntity constructor thrown if ContentType#getCharset is null.
Contributed by Oleg Kalnichevski <olegk at apache.org>
Release 4.2
-------------------
This is the first stable (GA) release of HttpCore 4.2. The most notable features included in this
release are connection pool components for blocking and non-blocking HTTP connections and new
asynchronous client and server side protocol handlers.
New protocol handling API used in conjunction with connection pooling components is expected to
make development of asynchronous HTTP client agents and HTTP proxies easier and less error prone.
Connection pool components are based on mature code migrated from HttpClient and HttpAsyncClient
modules but have a slightly different API that makes a better use of Java standard concurrent
primitives.
Changelog
-------------------
* Fixed HttpAsyncRequestExecutor incorrect execution of message exchanges that span across multiple
hosts (for instance, in case of a request redirect).
Contributed by Oleg Kalnichevski <olegk at apache.org>
* AbstractHttpClientConnection#isResponseAvailable method now catches SocketTimeoutException
and returns false.
Contributed by Oleg Kalnichevski <olegk at apache.org>
* [HTTPCORE-296] Server side connections (both blocking and non-blocking) can now handle entity
enclosing requests without Content-Length and Transfer-Encoding headers.
Contributed by Oleg Kalnichevski <olegk at apache.org>
* [HTTPCORE-295] [HTTPCORE-288] Provided direct access to the underlying socket of non-blocking
HTTP connection to allow modification of socket level settings such as TCP_NODELAY, SO_KEEPALIVE,
TrafficClass, etc.
Contributed by Oleg Kalnichevski <olegk at apache.org>
* [HTTPCORE-289] HttpAsyncService fails to invoke Cancellable#cancel() when the ongoing HTTP
exchange is aborted by the client.
Contributed by Oleg Kalnichevski <olegk at apache.org>
Incompatible changes
--------------------
[Compared to release version 4.1.4]
The following methods have been deprecated for some time now and have been deleted:
org.apache.http.impl.SocketHttpServerConnection#createHttpDataReceiver(Socket, int, HttpParams)
org.apache.http.impl.SocketHttpServerConnection#createHttpDataTransmitter(Socket, int, HttpParams)
org.apache.http.protocol.HttpRequestHandlerRegistry#matchUriRequestPattern(String, String)
The following classes have been deprecated for some while now and have been deleted:
org.apache.http.nio.entity.ByteArrayNIOEntity
org.apache.http.nio.entity.FileNIOEntity
org.apache.http.nio.entity.HttpNIOEntity
org.apache.http.nio.entity.StringNIOEntity
org.apache.http.nio.protocol.NHttpClientHandlerBase
org.apache.http.nio.protocol.NHttpServiceHandlerBase
Release 4.2-BETA1
-------------------
This is the first BETA release of HttpCore 4.2. This release comes with completely redesigned
and rewritten asynchronous protocol handlers. New protocol handling API used in conjunction with
connection pooling components is expected to make development of asynchronous HTTP client agents
and HTTP proxies easier and less error prone.
Sample application shipped with the release include an example of an HTTP file server capable of
direct channel (zero copy) data transfer and an example of a non-blocking, fully streaming reverse
proxy.
This release also incorporates bug fixes from the stable 4.1.x branch and includes an updated
HttpCore tutorial.
Release 4.1.4
-------------------
This is a maintenance release that fixes a number of bugs found since 4.1.3. It is also likely
to be the last release in the 4.1.x branch.
Changelog
-------------------
* [HTTPCORE-286] Canceled I/O session can cause an IllegalStateException in BaseIOReactor#validate
leading to an abnormal termination of the I/O reactor.
Contributed by Oleg Kalnichevski <olegk at apache.org>
* [HTTPCORE-257] Fixed incorrect results produced by DefaultConnectionReuseStrategy when handling
response messages whose content entity has been decoded or modified by a protocol interceptor.
Contributed by Oleg Kalnichevski <olegk at apache.org>
* [HTTPCORE-283] Workaround for a bug causing termination of the I/O reactor in case of exception
thrown by NHttpServiceHandler#requestReceived or NHttpClientHandler#responseReceived
methods. A more comprehensive fix for the bug applied to the 4.2 branch.
Contributed by Oleg Kalnichevski <olegk at apache.org>
* [HTTPCORE-281] ResponseConnControl protocol interceptor does not correctly populate connection
persistence control headers when sending a HTTP/1.1 response message in response to a HTTP/1.0
request message.
Contributed by William R. Speirs <bill.speirs at gmail.com>
* [HTTPCORE-282] The default value of the internal event mask of newly created non-blocking I/O
is not correctly initialized, which causes the READ interest bit to get cleared in the interest
op queuing mode unless the event mask is explicitly reset.
Contributed by Sadeep Jayasumana <sadeep at wso2.com> and Oleg Kalnichevski <olegk at apache.org>
* [HTTPCORE-268] Handle runtime exceptions thrown by SSLEngine.
Contributed by Oleg Kalnichevski <olegk at apache.org>
Release 4.2-ALPHA2
-------------------
This is the second ALPHA release of HttpCore 4.2. This release comes with completely redesigned
and rewritten asynchronous protocol handlers. New protocol handling API used in conjunction with
connection pooling components introduced in the previous ALPHA release is expected to make
development of asynchronous HTTP client agents and HTTP proxies easier and less error prone.
Sample application shipped with the release include an example of an HTTP file server capable of
direct channel (zero copy) data transfer and an example of a non-blocking, fully streaming reverse
proxy.
We are kindly asking existing and prospective users of HttpCore to review and try out the
new protocol handlers and give us feedback while the 4.2 API is still not final. If no major flaws
are discovered the 4.2 API is expected to be frozen with the next BETA release.
Please note that new features included in this release are still considered experimental and
their API may change in the future ALPHA releases. This release also marks the end of support for
Java 1.3. As of this release HttpCore requires Java 1.5 for all its components. Several classes and
methods deprecated between versions 4.0-beta1 and 4.0 GA (more than two years ago) have been
removed in this release.
Changelog
-------------------
* [HTTPCORE-270] Fixed IllegalStateException in AbstractSessionOutputBuffer and
AbstractSessionInputBuffer.
Contributed by William R. Speirs <bill.speirs at gmail.com>
* [HTTPCORE-269] Connection pools incorrectly handle lease requests when the max limit for the given
route has been exceeded and all connections in the route pool are stateful.
Contributed by Oleg Kalnichevski <olegk at apache.org>
Release 4.2-ALPHA1
-------------------
This is the first ALPHA release of 4.2. The most notable feature included in this release is
support for connection pools of blocking and non-blocking HTTP connections. Connection pool
components are based on mature code migrated from HttpClient and HttpAsyncClient modules but have
a slightly different API that makes a better use of Java standard concurrent primitives.
Support for connection pools in HttpCore is expected to make development of client and proxy HTTP
services easier and less error prone.
Please note that new features included in this release are still considered experimental and
their API may change in the future ALPHA releases. This release also marks the end of support for
Java 1.3. As of this release HttpCore requires Java 1.5 for all its components. Several classes and
methods deprecated between versions 4.0-beta1 and 4.0 GA (more than two years ago) have been
removed in this release.
Changelog
-------------------
* [HTTPCORE-268] Handle runtime exceptions thrown by SSLEngine.
Contributed by Oleg Kalnichevski <olegk at apache.org>
Release 4.1.3
-------------------
This is an emergency release that fixes a severe regression in the non-blocking SSL I/O code
introduced in release 4.1.2.
* [HTTPCORE-266] SSLIOSession does not correctly terminate if the opposite end shuts down connection
without sending a 'close notify' message causing an infinite loop in the I/O dispatch thread.
Contributed by Oleg Kalnichevski <olegk at apache.org>
Release 4.1.2
-------------------
This is a patch release that fixes a number of bugs found in the previous version.
Please note that several classes and methods deprecated between versions 4.0-beta1 and 4.0 GA
(more than two years ago) will also be removed in the 4.2 branch.
Users of 4.0.x versions are advised to upgrade and replace deprecated API calls following
recommendations in javadocs.
* [HTTPCORE-261] IOSession#setSocketTimeout() method does not reset the timeout count.
Contributed by Oleg Kalnichevski <olegk at apache.org>
* [HTTPCORE-260] Non-blocking SSL I/O session can terminate prematurely causing message body
truncation when message content is chunk coded and the connection is closed on the opposite end.
Contributed by Oleg Kalnichevski <olegk at apache.org>
* [HTTPCORE-257] Fixed incorrect results produced by DefaultConnectionReuseStrategy when handling
response messages whose content entity has been decoded or modified by a protocol interceptor.
Contributed by Oleg Kalnichevski <olegk at apache.org>
Release 4.1.1
-------------------
This is a patch release that fixes a number of non-critical issues found since release 4.1.
This release marks the end of support for Java 1.3. As of release 4.2 HttpCore will require
Java 1.5 for all its components.
Please note that several classes and methods deprecated between versions 4.0-beta1 and 4.0 GA
(more than two years ago) will also be removed in the 4.2 branch.
Users of 4.0.x versions are advised to upgrade and replace deprecated API calls following
recommendations in javadocs.
* In case of an unexpected end of stream condition (the peer closed connection prematurely)
truncated Content-Length delimited message bodies will cause an I/O exception. Application
can still choose to catch and ignore ConnectionClosedException in order to accept partial
message content.
Contributed by Oleg Kalnichevski <olegk at apache.org>
* [HTTPCORE-255]: Fixed resource management in InputStreamEntity#writeTo()
Contributed by Oleg Kalnichevski <olegk at apache.org>
* [HTTPCORE-254]: Erratic results from metrics (sebb)
* [HTTPCORE-242]: Fixed NPE in AsyncNHttpClientHandler caused by an early response to an
entity enclosing request.
Contributed by Oleg Kalnichevski <olegk at apache.org>
Release 4.1
-------------------
This is the first stable (GA) release of HttpCore 4.1. This release provides a compatibility mode
with JREs that have a naive (broken) implementation of SelectionKey API and also improves
compatibility with the Google Android platform. There has also been a number of performance
related improvements and bug fixes in both blocking and non-blocking components.
Changelog
-------------------
* [HTTPCORE-240]: DefaultConnectingIOReactor leaks a socket descriptor if the session request fails.
Contributed by Oleg Kalnichevski <olegk at apache.org>
* [HTTPCORE-239]: The ChunkEncoder could request for a negative buffer limit causing an
IllegalArgumentException.
Contributed by Asankha Perera <asankha at apache.org>
* [HTTPCORE-236]: SSLIOSession#isAppInputReady() does not check the status of the session input
buffer.
Contributed by Dmitry Lukyanov <dlukyanov at ukr.net>