forked from apache/httpcomponents-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRELEASE_NOTES.txt
2047 lines (1406 loc) · 82.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 5.0-BETA3
-------------------
This BETA release fixes a number of defects found since the previous release and
adds several incremental improvements.
* HTTPCORE-510: Avoid an ArithmeticException in AbstractMultiworkerIOReactor by failing earlier by checking ioThreadCount in IOReactorConfig constructor.
Contributed by Gary Gregory <ggregory at apache.org>
* HTTPCORE-511: Do not cache result of Runtime.getRuntime().availableProcessors() in IOReactorConfig.
Contributed by Gary Gregory <ggregory at apache.org>
* HTTPCORE-509: AVAIL_PROCS is auto-configured based on core count.
Contributed by Gary Gregory <ggregory at apache.org>
* HTTPCORE-514: Exceptions defined by HttpCore should clean message strings when built to replace non-printable characters with hex values.
Contributed by Gary Gregory <ggregory at apache.org>
* HTTPCORE-517: Allow SecurityManager to stop socket connections.
Contributed by Gary Gregory <ggregory at apache.org> and Paul Thompson <pathompson at atlassian dot com>
Release 5.0-BETA2
-------------------
This BETA release fixes a number of defects found since the previous release and
adds several incremental improvements.
Notable changes and features included in the 5.0 series:
* Support for HTTP/2 protocol and conformance to requirements and recommendations
of the latest HTTP/2 protocol specification (RFC 7540, RFC 7541)
Supported features:
** HPACK header compression
** stream multiplexing (client and server)
** flow control
** response push (client and server)
** message trailers
** expect-continue handshake
** connection validation (ping)
** application-layer protocol negotiation (ALPN) on Java 9+
** TLS 1.2 security features
Features out of scope for 5.0 release:
** padding of outgoing frames
** stream priority
** plain connection HTTP/1.1 upgrade
** CONNECT method
* Improved conformance to requirements and recommendations of the latest HTTP/1.1 protocol
specification (RFC 7230, RFC 7231)
* New asynchronous HTTP transport APIs consistent for both HTTP/1.1 and HTTP/2 transport.
* Redesigned I/O reactor APIs and improved NIO based reactor implementation for a greater
performance and scalability.
* Support for server side request filters for classic and asynchronous server implementations.
Request filters could be used to implement cross-cutting protocol aspects such
as the 'expect-continue' handshaking and user authentication / authorization.
* Redesigned connection pool implementation with strict connection limit guarantees.
The connection pool is expected to have a better performance under higher concurrency
due to reduced global pool lock contention.
* New connection pool implementation with lax connection limit guarantees and better
performance under higher concurrency due to absence of a global pool lock.
* Package name space changed to 'org.apache.hc.core5'
* Maven group id changed to 'org.apache.httpcomponents.core5'
HttpCore 5.0 releases can be co-located with earlier versions.
The 5.0 APIs are considered feature complete and are not expected to undergo any major changes
anymore. The focus of development is now shifting to API polish, code stabilisation
and documentation improvements.
Changelog
-------------------
* HTTP/2 multiplexed requester to support cancellation of individual message exchanges without termination
of the underlying I/O session.
Contributed by Oleg Kalnichevski <olegk at apache.org>
* Bugfix: corrected handling of GOAWAY frames by HTTP/2 stream multiplexer
Contributed by Oleg Kalnichevski <olegk at apache.org>
* Bugfix: prevent a tight loop in non-blocking SSL I/O sessions due to a HTTP/2 frame fragment in the SSL
input buffer.
Contributed by Oleg Kalnichevski <olegk at apache.org>
* Bugfix: incorrect handing of premature i/o session termination by the server side application protocol
negotiator.
Contributed by Oleg Kalnichevski <olegk at apache.org>
* Strict / lax ALPN handshake mode for HTTP/2 multiplexing requester.
Contributed by Oleg Kalnichevski <olegk at apache.org>
* HTTPCORE-496: Add API org.apache.http.protocol.UriPatternMatcher.entrySet().
Contributed by Gary Gregory <ggregory at apache.org>
* HTTPCORE-499 Make interface Header extend NameValuePair
Contributed by Gary Gregory <ggregory at apache.org>
* HTTPCORE-501 org.apache.http.client.utils.URLEncodedUtils.parse()
should return a new ArrayList when there are no query parameters.
Contributed by Gary Gregory <ggregory at apache.org>
Release 5.0-BETA1
-------------------
This is a major release that renders HttpCore API incompatible with the stable 4.x branch
and upgrades HTTP/1.1 and HTTP/2 protocol conformance to the requirements and recommendations
of the latest protocol specification.
Notable new features in this release:
* New HTTP/2 requester optimized for multiplexed execution of requests.
Notable changes and features included in the 5.0 series:
* Support for HTTP/2 protocol and conformance to requirements and recommendations
of the latest HTTP/2 protocol specification (RFC 7540, RFC 7541)
Supported features:
** HPACK header compression
** stream multiplexing (client and server)
** flow control
** response push (client and server)
** message trailers
** expect-continue handshake
** connection validation (ping)
** application-layer protocol negotiation (ALPN) on Java 9+
** TLS 1.2 security features
Features out of scope for 5.0 release:
** padding of outgoing frames
** stream priority
** plain connection HTTP/1.1 upgrade
** CONNECT method
* Improved conformance to requirements and recommendations of the latest HTTP/1.1 protocol
specification (RFC 7230, RFC 7231)
* New asynchronous HTTP transport APIs consistent for both HTTP/1.1 and HTTP/2 transport.
* Redesigned I/O reactor APIs and improved NIO based reactor implementation for a greater
performance and scalability.
* Support for server side request filters for classic and asynchronous server implementations.
Request filters could be used to implement cross-cutting protocol aspects such
as the 'expect-continue' handshaking and user authentication / authorization.
* Redesigned connection pool implementation with strict connection limit guarantees.
The connection pool is expected to have a better performance under higher concurrency
due to reduced global pool lock contention.
* New connection pool implementation with lax connection limit guarantees and better
performance under higher concurrency due to absence of a global pool lock.
* Package name space changed to 'org.apache.hc.core5'
* Maven group id changed to 'org.apache.httpcomponents.core5'
HttpCore 5.0 releases can be co-located with earlier versions.
The 5.0 APIs are considered feature complete and are not expected to undergo any major changes
anymore. The focus of development is now shifting to API polish, code stabilisation
and documentation improvements.
Changelog
-------------------
* HTTP/2 multiplexing requester.
Contributed by Oleg Kalnichevski <olegk at apache.org>
* Compatibility with Java 9 (tested with Oracle JDK 9.0.1).
Contributed by Oleg Kalnichevski <olegk at apache.org>
* Fixed handling of relative request paths in BasicHttpRequest.
Contributed by Oleg Kalnichevski <olegk at apache.org>
* HTTPCORE-494: Add image constants to ContentType.
Contributed by Gary Gregory <ggregory at apache.org>
* HTTPCORE-486: set a time limit on processing of pending I/O events by I/O reactors.
Contributed by xiaohu-zhang <[email protected]>
Release 5.0-ALPHA4
-------------------
This is a major release that renders HttpCore API incompatible with the stable 4.x branch
and upgrades HTTP/1.1 and HTTP/2 protocol conformance to the requirements and recommendations
of the latest protocol specification.
Notable changes and features included in the 5.0 series are:
* Support for HTTP/2 protocol and conformance to requirements and recommendations
of the latest HTTP/2 protocol specification (RFC 7540, RFC 7541)
Supported features:
** HPACK header compression
** stream multiplexing (client and server)
** flow control
** response push (client and server)
** message trailers
** expect-continue handshake
** connection validation (ping)
** application-layer protocol negotiation (ALPN) on Java 1.9+
** TLS 1.2 security features
Features out of scope for 5.0 release:
** padding of outgoing frames
** stream priority
** plain connection HTTP/1.1 upgrade
** CONNECT method
* Improved conformance to requirements and recommendations of the latest HTTP/1.1 protocol
specification (RFC 7230, RFC 7231)
* New asynchronous HTTP transport APIs consistent for both HTTP/1.1 and HTTP/2 transport.
* Redesigned I/O reactor APIs and improved NIO based reactor implementation for a greater
performance and scalability.
* Support for server side request filters for classic and asynchronous server implementations.
Request filters could be used to implement cross-cutting protocol aspects such
as the 'expect-continue' handshaking and user authentication / authorization.
* Redesigned connection pool implementation with strict connection limit guarantees.
The connection pool is expected to have a better performance under higher concurrency
due to reduced global pool lock contention.
* New connection pool implementation with lax connection limit guarantees and better
performance under higher concurrency due to absence of a global pool lock.
* Package name space changed to 'org.apache.hc.core5'
* Maven group id changed to 'org.apache.httpcomponents.core5'
HttpCore 5.0 releases can be co-located with earlier versions.
Please note that at this point 5.0 APIs are considered API experimental and unstable and are
expected to change in the coming releases without providing a migration path.
Changelog
-------------------
* HTTPCORE-485: Reduced memory footprint of non-blocking SSL sessions by 25%.
Contributed by Todor Bonchev <31352118+todorbonchev at users.noreply.github.com>
* Fixed propagation of entity details of incoming HTTP/1.1 messages by non-blocking HTTP/1.1
stream duplexer
Contributed by Oleg Kalnichevski <olegk at apache.org>
* Configurable connection pool concurrency policy
Contributed by Oleg Kalnichevski <olegk at apache.org>
* HTTPCORE-390: Connection pool implementation with higher concurrency characteristics
and lax total and per route max guarantees.
Contributed by Oleg Kalnichevski <olegk at apache.org>
* Request filters for classic and asynchronous server side protocol handlers
Contributed by Oleg Kalnichevski <olegk at apache.org>
* Improved handling of 1xx status messages by the classic transport; server expectation
(expect-continue) handshake can now be implemented as a cross-cutting aspect by both
the classic and asynchronous transports
Contributed by Oleg Kalnichevski <olegk at apache.org>
* Fixed bug in the classic (blocking) HTTP requester causing incorrect release of connections
in case a response message has no entity (such as 204)
Contributed by Oleg Kalnichevski <olegk at apache.org>
* HTTPCORE-454: use Timeout class to represent timeout values
Contributed by Oleg Kalnichevski <olegk at apache.org>
* Made HTTP/2 data window update precede sending of the DATA frame to the opposite endpoint.
In some extreme circumstances the opposite endpoint can send back a WINDOW_UPDATE frame
in-between of these two operation causing the data window value to exceed its maximum
valid value
Contributed by Oleg Kalnichevski <olegk at apache.org>
* I/O interest flag in IOSessionImpl requires synchronization instead of atomic operation
in order to avoid race condition
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>
* Improved I/O reactor APIs with a smaller public API footprint
Contributed by Oleg Kalnichevski <olegk at apache.org>
* Rewrite of I/O reactor internal channel management; more efficient handling of outgoing
connection requests
Contributed by Oleg Kalnichevski <olegk at apache.org>
* Fixed delineation of 200 status message in response to CONNECT method
Contributed by Oleg Kalnichevski <olegk at apache.org>
* HTTPCORE-468: Allow HttpAsyncService subclasses to customize the HTTP status code.
Contributed by Gary Gregory <ggregory at apache.org>
* HTTPCORE-471: Add APIs URIBuilder.localhost() and setHost(InetAddress)
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>
Release 5.0-ALPHA3
-------------------
This is a major release that renders HttpCore API incompatible with the stable 4.x branch
and upgrades HTTP/1.1 and HTTP/2 protocol conformance to the requirements and recommendations
of the latest protocol specification.
Notable changes and features included in the 5.0 series are:
* Partial support for HTTP/2 protocol and conformance to requirements and
recommendations of the latest HTTP/2 protocol specification (RFC 7540, RFC 7541)
Supported features:
** HPACK header compression
** stream multiplexing (client and server)
** flow control
** response push (client and server)
** message trailers
** expect-continue handshake
** connection validation (ping)
** application-layer protocol negotiation (ALPN) on Java 1.9+
** TLS 1.2 security features
Unsupported features:
** padding of outgoing frames
** stream priority
** plain connection HTTP/1.1 upgrade
** CONNECT method
* Improved conformance to requirements and recommendations of the latest HTTP/1.1 protocol
specification (RFC 7230, RFC 7231)
* New asynchronous HTTP transport APIs consistent for both HTTP/1.1 and HTTP/2 transport.
* Improved HTTP/1.1 and HTTP/2 requester and server implementations.
* Redesigned connection pool implementation with reduced pool lock contention.
* Plug-in mechanism for HTTP/1.1 protocol switch / upgrade.
* Package name space changed to 'org.apache.hc.core5'
* Maven group id changed to 'org.apache.httpcomponents.core5'
HttpCore 5.0 releases can be co-located with earlier versions.
Please note that as of 5.0 HttpCore requires Java 1.7 or newer.
Please note that at this point 5.0 APIs are considered API experimental and unstable and are
expected to change in the coming releases without providing a migration path.
Changelog
-------------------
* Support for HTTP protocol version negotiation.
Contributed by Oleg Kalnichevski <olegk at apache.org>
* Support TLS ALPN and disable TLS renegotiation via reflection on Java 1.9+.
Contributed by Oleg Kalnichevski <olegk at apache.org>
* HTTPCORE-452: Add a UriRegexMatcher.
Contributed by Gary Gregory <ggregory at apache.org>
* HTTPCORE-453: ServerBootstrap should traverse handler map in insertion order.
Contributed by Gary Gregory <ggregory at apache.org>
* HTTPCORE-451: Add a TimeValue class to wrap a long and a TimeUnit.
Contributed by Gary Gregory <ggregory at apache.org>
* Fixed HTTP/2 server side response message delineation when replying to HEAD requests.
Contributed by Oleg Kalnichevski <olegk at apache.org>
* Rewrite of non-blocking HTTP/1.1 connection persistence and re-use code.
Contributed by Oleg Kalnichevski <olegk at apache.org>
* API for graceful shutdown of processes or endpoints
Contributed by 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>
* Improved handling of premature HTTP/1.1 stream termination by non-blocking
protocol handlers.
Contributed by Oleg Kalnichevski <olegk at apache.org>
* Non-blocking connection initializer to support multi-homed remote endpoints.
Contributed by Oleg Kalnichevski <olegk at apache.org>
* HTTPCORE-458: Validate port values
Contributed by Gary Gregory <ggregory at apache.org>
Release 5.0-ALPHA2
-------------------
This is a major release that renders HttpCore API incompatible with the stable 4.x branch
and upgrades HTTP/1.1 and HTTP/2 protocol conformance to the requirements and recommendations
of the latest protocol specification.
Notable changes and features included in the 5.0 series are:
* Partial support for HTTP/2 protocol and partial conformance to requirements and
recommendations of the latest HTTP/2 protocol specification (RFC 7540, RFC 7541)
Supported features:
** HPACK header compression
** stream multiplexing (client and server)
** flow control
** response push (client and server)
** message trailers
** expect-continue handshake
** connection validation (ping)
** TLS 1.2 features
Unsupported features:
** application-layer protocol negotiation (ALPN)
** padding of outgoing frames
** stream priority
** plain connection HTTP/1.1 upgrade
** CONNECT method
** TLS renegotiation and compression cannot be disabled with Java 1.7 JSSE APIs
* Improved conformance to requirements and recommendations of the latest HTTP/1.1 protocol
specification (RFC 7230, RFC 7231)
* New asynchronous HTTP transport APIs consistent for both HTTP/1.1 and HTTP/2 transport.
* Improved HTTP/1.1 and HTTP/2 requester and server implementations.
* Redesigned connection pool implementation with reduced pool lock contention.
* Support for HTTP/1.1 protocol switch / upgrade.
* Package name space changed to 'org.apache.hc.core5'
* Maven group id changed to 'org.apache.httpcomponents.core5'
HttpCore 5.0 releases can be co-located with earlier versions.
Please note that as of 5.0 HttpCore requires Java 1.7 or newer.
Please note that at this point 5.0 APIs are considered API experimental and unstable and are
expected to change in the coming releases without providing a migration path.
Changelog
-------------------
* HTTPCORE-424: added ConnPool policy parameter to control connection re-use policy.
Contributed by Oleg Kalnichevski <olegk at apache.org>
* HTTPCORE-413: Minimal chunk side can now be specified as H1Config#chunkSizeHint.
The value is treated as a hint. Both classic and NIO attempt to apply it when sending / receiving
messages without providing a strict guarantee.
Contributed by Oleg Kalnichevski <olegk at apache.org>
* HTTPCORE-429: NIO connection pool incorrectly reports the number of pending connections
per individual route.
Contributed by Oleg Kalnichevski <olegk at apache.org>
* HTTPCORE-432: HTTP/2 support.
Contributed by Oleg Kalnichevski <olegk at apache.org>
* HTTPCORE-418: Add a HttpHost constructor for hostname and scheme.
Based on contribution by Joshua Hendrickson <joshua dot hendrickson at live dot com>
* HTTPCORE-436: Port tests from Apache Commons Logging to Apache Log4j 2.
Contributed by Gary Gregory <ggregory at apache.org>
* HTTPCORE-434: Corrected handling of HEAD responses without payload headers.
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-420: Blocking HttpServer does not close out persistent connection when shut down.
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>
Release 5.0-ALPHA1
-------------------
This is a major release that renders HttpCore API incompatible with the stable 4.x branch
and upgrades HTTP/1.1 protocol conformance to the requirements and recommendations of the latest
protocol specification. This release lays the foundation for transition to HTTP/2 as the primary
transport protocol in the future releases.
Notable changes and features included in the 5.0 series are:
* Improved conformance to requirements and recommendations of the latest HTTP/1.1 protocol
specification (RFC 7230, RFC 7231)
* Blocking I/O and NIO HTTP transport implementation has been folded into one module
* Package name space changed to 'org.apache.hc.core5'
* Maven group id changed to 'org.apache.httpcomponents.core5'
HttpCore 5.0 releases can be co-located with earlier versions.
Please note that as of 5.0 HttpCore requires Java 1.7 or newer.
Please note that at this point 5.0 APIs are considered API experimental and unstable and are
expected to change in the coming releases without providing a migration path.
Changelog
-------------------
* PATCH method support
Contributed by Ömer Özkan <omer at ozkan.info>
* HTTPCORE-412: Support for trailing headers in outgoing HTTP messages
Based on contribution by Daneel Yaitskov <rtfm.rtfm.rtfm at gmail.com>
* HTTPCORE-411, RFC 7320, RFC 7321: Made Expect-Continue handshake compliant with the spec
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>
* HTTPCORE-406: PAX-EXAM tests with an embedded HTTP server
Contributed by Benson Margulies <benson at basistech.com>
* RFC 7230: increased the default max number of concurrent connection for the same route from 2 to 5
Contributed by Oleg Kalnichevski <olegk at apache.org>
* RFC 7230: improved compliance of the default connection re-use strategy
Contributed by Oleg Kalnichevski <olegk at apache.org>
* RFC 7230: reject HTTP/1.1 requests with absent Host header or multiple Host headers
Contributed by Oleg Kalnichevski <olegk at apache.org>
* RFC 7230: permit some empty lines before message head
Contributed by Oleg Kalnichevski <olegk at apache.org>
* RFC 7230: disallow multiple Content-Length headers / header elements
Contributed by Oleg Kalnichevski <olegk at apache.org>
* RFC 7230: reject headers containing whitespaces between the header field name and colon in strict mode
(when parsing request messages on the server side)
Contributed by Oleg Kalnichevski <olegk at apache.org>
* RFC 7230: reject messages with incompatible major protocol version
Contributed by Oleg Kalnichevski <olegk at apache.org>
* HTTP/2: added immutable MessageHead interface common for both HTTP/1.1 and HTTP/2 messages
Contributed by Oleg Kalnichevski <olegk at apache.org>
* HTTPCORE-396: PrivateKeyStrategy does not work with NIO SSL
Contributed by Oleg Kalnichevski <olegk at apache.org>
* RFC 7230: it is legal for any request method to enclose an entity; revised message delineation logic;
removed HttpEntityEnclosingRequest interface; fixes HTTPCORE-318, HTTPCORE-380
Contributed by Oleg Kalnichevski <olegk at apache.org>
* Use CharSequence instead of CharArrayBuffer for header element parsing
Contributed by Oleg Kalnichevski <olegk at apache.org>
* TokenParser to use CharSequence instead of CharArrayBuffer
Contributed by Oleg Kalnichevski <olegk at apache.org>
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
-------------------