Skip to content

Commit

Permalink
解决新的curl的7.64.1版本下,不接受0x00字符导致"Failed writing body (0 != 1)"的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
dongchenxu committed Dec 11, 2019
1 parent fc2cee9 commit 6fe5e48
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,6 @@ public boolean waitingForBroken(final long time,
: 0;

try {
int heartBeat = 0;
while (!writer.checkError()
&& !isBrokenRef.get()
&& !Thread.currentThread().isInterrupted()) {
Expand All @@ -169,10 +168,6 @@ public boolean waitingForBroken(final long time,

if (writeQueue.isEmpty()) {
delay();
if (heartBeat++ > 20) {
heartBeat = 0;
writer.write(0x0);
}
} else {
flush();
resetDelayTimeMs();
Expand Down

0 comments on commit 6fe5e48

Please sign in to comment.