You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by ol...@apache.org on 2021/09/29 08:09:22 UTC
[httpcomponents-core] branch master updated (146c967 -> ae9ec8c)
This is an automated email from the ASF dual-hosted git repository.
olegk pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/httpcomponents-core.git.
from 146c967 Bug fix: TLS handshake result callback does not get called in case of a timeout
new 003c0cd More efficient implementation of #appendPathSegments in URIBuilder
new ae9ec8c Added public getter for PoolEntry#created attribute
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
httpcore5/src/main/java/org/apache/hc/core5/net/URIBuilder.java | 9 ++++++---
httpcore5/src/main/java/org/apache/hc/core5/pool/PoolEntry.java | 7 +++++++
2 files changed, 13 insertions(+), 3 deletions(-)
[httpcomponents-core] 01/02: More efficient implementation of
#appendPathSegments in URIBuilder
Posted by ol...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
olegk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/httpcomponents-core.git
commit 003c0cd598836a78839ab9c6b001c1a394c97ccb
Author: Oleg Kalnichevski <ol...@apache.org>
AuthorDate: Sat Sep 11 17:08:16 2021 +0200
More efficient implementation of #appendPathSegments in URIBuilder
---
httpcore5/src/main/java/org/apache/hc/core5/net/URIBuilder.java | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/httpcore5/src/main/java/org/apache/hc/core5/net/URIBuilder.java b/httpcore5/src/main/java/org/apache/hc/core5/net/URIBuilder.java
index bae35b9..5d648cd 100644
--- a/httpcore5/src/main/java/org/apache/hc/core5/net/URIBuilder.java
+++ b/httpcore5/src/main/java/org/apache/hc/core5/net/URIBuilder.java
@@ -571,9 +571,12 @@ public class URIBuilder {
*/
public URIBuilder appendPathSegments(final List<String> pathSegments) {
if (pathSegments != null && !pathSegments.isEmpty()) {
- final List<String> segments = new ArrayList<>(getPathSegments());
- segments.addAll(pathSegments);
- setPathSegments(segments);
+ if (this.pathSegments == null) {
+ this.pathSegments = new ArrayList<>();
+ }
+ this.pathSegments.addAll(pathSegments);
+ this.encodedSchemeSpecificPart = null;
+ this.encodedPath = null;
}
return this;
}
[httpcomponents-core] 02/02: Added public getter for
PoolEntry#created attribute
Posted by ol...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
olegk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/httpcomponents-core.git
commit ae9ec8c0236051d053793cd48388056423f738d6
Author: Oleg Kalnichevski <ol...@apache.org>
AuthorDate: Wed Sep 29 09:27:20 2021 +0200
Added public getter for PoolEntry#created attribute
---
httpcore5/src/main/java/org/apache/hc/core5/pool/PoolEntry.java | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/httpcore5/src/main/java/org/apache/hc/core5/pool/PoolEntry.java b/httpcore5/src/main/java/org/apache/hc/core5/pool/PoolEntry.java
index 8a28266..ad27c69 100644
--- a/httpcore5/src/main/java/org/apache/hc/core5/pool/PoolEntry.java
+++ b/httpcore5/src/main/java/org/apache/hc/core5/pool/PoolEntry.java
@@ -125,6 +125,13 @@ public final class PoolEntry<T, C extends ModalCloseable> {
return this.state;
}
+ /**
+ * @since 5.2
+ */
+ public long getCreated() {
+ return created;
+ }
+
public long getUpdated() {
return this.updated;
}