10000 Fix handling of multi-message TSIG responses (#303) · srijeet0406/dnsjava@b575ca8 · GitHub
[go: up one dir, main page]

Skip to content

Commit b575ca8

Browse files
ibauersachsfrankarinnetnguichon
authored
Fix handling of multi-message TSIG responses (dnsjava#303)
* Fix handling of multi-message TSIG responses Closes dnsjava#295 Closes dnsjava#297 Closes dnsjava#298 Closes dnsjava#299 Closes dnsjava#301 Co-authored-by: Frank Hill <frank@arin.net> Co-authored-by: Nick Guichon <nickg@arin.net>
1 parent e361d1e commit b575ca8

File tree

9 files changed

+647
-97
lines changed

9 files changed

+647
-97
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
* text eol=lf
2+
*.bin binary
< 8000 /div>

pom.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -433,6 +433,12 @@
433433
<version>${vertx.version}</version>
434434
<scope>test</scope>
435435
</dependency>
436+
<dependency>
437+
<groupId>commons-io</groupId>
438+
<artifactId>commons-io</artifactId>
439+
<version>2.15.0</version>
440+
<scope>test</scope>
441+
</dependency>
436442
</dependencies>
437443

438444
<profiles>

src/main/java/org/xbill/DNS/TCPClient.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
import java.time.Duration;
1515
import java.time.temporal.ChronoUnit;
1616

17-
final class TCPClient {
17+
class TCPClient implements AutoCloseable {
1818
private final long startTime;
1919
private final Duration timeout;
2020
private final SelectionKey key;
@@ -144,7 +144,7 @@ private void blockUntil(SelectionKey key) throws IOException {
144144
}
145145
}
146146

147-
void cleanup() throws IOException {
147+
public void close() throws IOException {
148148
key.selector().close();
149149
key.channel().close();
150150
}

0 commit comments

Comments
 (0)
0