Skip to content

Commit 33ad9cb

Browse files
author
zhourenjian
committed
Fixing bug that re-using CompoundPipe after first poll-query ends (20s later)
1 parent 9c2d325 commit 33ad9cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sources/net.sf.j2s.ajax/ajaxpipe/net/sf/j2s/ajax/CompoundPipeRunnable.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public boolean isPipeLive() {
8383
if (pipeAlive && status < 3) { // connected
8484
return true; // still in starting status
8585
}
86-
if (status == 3 && System.currentTimeMillis() - lastSetup < 30000) {
86+
if (status == 3 && System.currentTimeMillis() - lastSetup <= 3 * SimplePipeRequest.pipeLiveNotifyInterval) {
8787
return true;
8888
}
8989
if (super.isPipeLive()) {

0 commit comments

Comments
 (0)