Skip to content

Commit 18da0d6

Browse files
Fix JavaDoc for HttpConnection.close() to reference correct close(CloseMode) method (#561)
1 parent d043e5e commit 18da0d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

httpcore5/src/main/java/org/apache/hc/core5/http/HttpConnection.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public interface HttpConnection extends SocketModalCloseable {
4242
/**
4343
* Closes this connection gracefully. This method will attempt to flush the internal output
4444
* buffer prior to closing the underlying socket. This method MUST NOT be called from a
45-
* different thread to force shutdown of the connection. Use {@link #close shutdown} instead.
45+
* different thread to force shutdown of the connection. Use {@link #close(CloseMode) close(CloseMode.IMMEDIATE)} instead.
4646
*/
4747
@Override
4848
void close() throws IOException;

0 commit comments

Comments
 (0)