Codebase list httpcomponents-core / 954629d
New upstream release. Debian Janitor 2 years ago
16 changed file(s) with 63 addition(s) and 23 deletion(s). Raw diff Collapse all Expand all
0 Release 4.4.15
1 -------------------
2
3 This is a maintenance release that corrects a number of defects discovered since release 4.4.14.
4
5 Changelog
6 -------------------
7
8 * HTTPCORE-695: Unhandled CancelledKeyException during processPendingInterestOps leads to
9 a shutdown of the underlying IOReactor.
10 Contributed by Kurtcebe Eroglu <kurtcebe.eroglu at gmail.com>
11
12 * HTTPCORE-687: Non-blocking SSL I/O session can enter a tight loop if the SSL session gets
13 closed by the protocol layer while there is still unprocessed data stuck in the protocol session
14 buffer.
15 Contributed by Oleg Kalnichevski <olegk at apache.org>
16
17 * HTTPCORE-660: Convert RuntimeExceptions thrown by SSLSetupHandler#verify to SSLExceptions.
18 Contributed by Oleg Kalnichevski <olegk at apache.org>
19
20
21
022 Release 4.4.14
123 -------------------
224
0 httpcomponents-core (4.4.15-1) UNRELEASED; urgency=low
1
2 * New upstream release.
3
4 -- Debian Janitor <janitor@jelmer.uk> Sat, 19 Mar 2022 03:51:52 -0000
5
06 httpcomponents-core (4.4.14-2) unstable; urgency=medium
17
28 * Track only the 4.x releases
2727 <parent>
2828 <groupId>org.apache.httpcomponents</groupId>
2929 <artifactId>httpcomponents-core</artifactId>
30 <version>4.4.14</version>
30 <version>4.4.15</version>
3131 </parent>
3232 <artifactId>httpcore</artifactId>
3333 <name>Apache HttpCore</name>
155155 int SC_LOCKED = 423;
156156 /** {@code 424 Failed Dependency} (WebDAV - RFC 2518) */
157157 int SC_FAILED_DEPENDENCY = 424;
158 /** {@code 429 Too Many Requests} (Additional HTTP Status Codes - RFC 6585) */
159 int SC_TOO_MANY_REQUESTS = 429;
158160
159161 // --- 5xx Server Error ---
160162
315315 try {
316316 this.inBuffer.clear();
317317 this.outbuffer.flush();
318 try {
319 try {
320 socket.shutdownOutput();
321 } catch (final IOException ignore) {
322 }
323 try {
324 socket.shutdownInput();
325 } catch (final IOException ignore) {
326 }
327 } catch (final UnsupportedOperationException ignore) {
328 // if one isn't supported, the other one isn't either
329 }
330318 } finally {
331319 socket.close();
332320 }
9292 new String[3], // 1xx
9393 new String[8], // 2xx
9494 new String[8], // 3xx
95 new String[25], // 4xx
95 new String[30], // 4xx
9696 new String[8] // 5xx
9797 };
9898
139139 "Forbidden");
140140 setReason(HttpStatus.SC_NOT_FOUND,
141141 "Not Found");
142 setReason(HttpStatus.SC_TOO_MANY_REQUESTS,
143 "Too Many Requests");
142144 setReason(HttpStatus.SC_INTERNAL_SERVER_ERROR,
143145 "Internal Server Error");
144146 setReason(HttpStatus.SC_NOT_IMPLEMENTED,
127127
128128 Mockito.verify(outStream, Mockito.times(1)).write(
129129 Matchers.<byte []>any(), Matchers.anyInt(), Matchers.anyInt());
130 Mockito.verify(socket, Mockito.times(1)).shutdownInput();
131 Mockito.verify(socket, Mockito.times(1)).shutdownOutput();
132130 Mockito.verify(socket, Mockito.times(1)).close();
133131
134132 conn.close();
2727 <parent>
2828 <groupId>org.apache.httpcomponents</groupId>
2929 <artifactId>httpcomponents-core</artifactId>
30 <version>4.4.14</version>
30 <version>4.4.15</version>
3131 </parent>
3232 <artifactId>httpcore-ab</artifactId>
3333 <name>Apache HttpCore Benchmarking Tool</name>
2727 <parent>
2828 <groupId>org.apache.httpcomponents</groupId>
2929 <artifactId>httpcomponents-core</artifactId>
30 <version>4.4.14</version>
30 <version>4.4.15</version>
3131 </parent>
3232 <artifactId>httpcore-nio</artifactId>
3333 <name>Apache HttpCore NIO</name>
508508 return;
509509 }
510510 this.status = CLOSING;
511 this.inbuf.clear();
512 this.hasBufferedInput = false;
511513 if (this.outbuf.hasData()) {
512514 this.session.setEvent(EventMask.WRITE);
513515 } else {
464464 final SelectionKey key = entry.getSelectionKey();
465465 final int eventMask = entry.getEventMask();
466466 if (key.isValid()) {
467 key.interestOps(eventMask);
467 try {
468 key.interestOps(eventMask);
469 } catch (final CancelledKeyException ex) {
470 // ignore and move on
471 }
468472 }
469473 }
470474 }
411411 return found ? tmpBuffer.toString() : null;
412412 }
413413
414 @Override
415 public void clear() {
416 super.clear();
417 }
418
414419 }
367367 // It is never generated by SSLEngine.getHandshakeStatus().
368368 if (result != null && result.getHandshakeStatus() == HandshakeStatus.FINISHED) {
369369 if (this.handler != null) {
370 this.handler.verify(this.session, this.sslEngine.getSession());
370 try {
371 this.handler.verify(this.session, this.sslEngine.getSession());
372 } catch (final RuntimeException ex) {
373 // Some libraries can throw a plan RuntimeException from #verify method
374 // in case of a hostname verification failure in violation of the API contract
375 throw convert(ex);
376 }
371377 }
372378 }
373379 }
2727 <parent>
2828 <groupId>org.apache.httpcomponents</groupId>
2929 <artifactId>httpcomponents-core</artifactId>
30 <version>4.4.14</version>
30 <version>4.4.15</version>
3131 </parent>
3232 <artifactId>httpcore-osgi</artifactId>
3333 <name>Apache HttpCore OSGi bundle</name>
3232 <modelVersion>4.0.0</modelVersion>
3333 <artifactId>httpcomponents-core</artifactId>
3434 <name>Apache HttpComponents Core</name>
35 <version>4.4.14</version>
35 <version>4.4.15</version>
3636 <description>Apache HttpComponents Core is a library of components for building HTTP enabled services</description>
3737 <url>http://hc.apache.org/httpcomponents-core-ga</url>
3838 <inceptionYear>2005</inceptionYear>
6060 <connection>scm:git:https://git-wip-us.apache.org/repos/asf/httpcomponents-core.git</connection>
6161 <developerConnection>scm:git:https://git-wip-us.apache.org/repos/asf/httpcomponents-core.git</developerConnection>
6262 <url>https://github.com/apache/httpcomponents-core/tree/${project.scm.tag}</url>
63 <tag>4.4.14</tag>
63 <tag>4.4.15</tag>
6464 </scm>
6565
6666 <modules>