Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
* text eol=lf
*.bin binary
6 changes: 6 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,12 @@
<version>${vertx.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.15.0</version>
<scope>test</scope>
</dependency>
</dependencies>

<profiles>
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/xbill/DNS/TCPClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import java.time.Duration;
import java.time.temporal.ChronoUnit;

final class TCPClient {
class TCPClient implements AutoCloseable {
private final long startTime;
private final Duration timeout;
private final SelectionKey key;
Expand Down Expand Up @@ -144,7 +144,7 @@ private void blockUntil(SelectionKey key) throws IOException {
}
}

void cleanup() throws IOException {
public void close() throws IOException {
key.selector().close();
key.channel().close();
}
Expand Down
Loading