Skip to content

Commit 75a2af5

Browse files
committed
Yield the thread on the client writer
1 parent d7faa6a commit 75a2af5

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

simple/simple-http/src/test/java/org/simpleframework/http/message/ContainerPerformanceTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ public void run() {
153153
client.write(ByteBuffer.wrap(SOURCE_2));
154154
client.write(ByteBuffer.wrap(SOURCE_3));
155155
client.write(ByteBuffer.wrap(SOURCE_4));
156+
Thread.sleep(1);
156157
}
157158
client.write(ByteBuffer.wrap(CLOSE));
158159
client.close();
@@ -177,7 +178,7 @@ public void run() {
177178
dumper.kill();
178179
}
179180

180-
// This is a container that counts the callbacks/requests it gets
181+
// This is a container that counts the callbacks/requests it gets and sends a valid HTTP/1.1 response
181182
private class CounterContainer implements Container {
182183

183184
private final AtomicInteger counter;

0 commit comments

Comments
 (0)