Skip to content

Commit

Permalink
Fix handling of multi-message TSIG responses (#303)
Browse files Browse the repository at this point in the history
* Fix handling of multi-message TSIG responses

Closes #295
Closes #297
Closes #298
Closes #299
Closes #301

Co-authored-by: Frank Hill <frank@arin.net>
Co-authored-by: Nick Guichon <nickg@arin.net>
  • Loading branch information
3 people committed Nov 4, 2023
1 parent e361d1e commit b575ca8
Show file tree
Hide file tree
Showing 9 changed files with 647 additions and 97 deletions.
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

0 comments on commit b575ca8

Please sign in to comment.