Upgrade to Spring 2.5.5
This commit is contained in:
@@ -153,10 +153,11 @@ public class ChunkMessageChannelItemWriter extends StepExecutionListenerSupport
|
||||
private boolean waitForResults() {
|
||||
// TODO: cumulative timeout, or throw an exception?
|
||||
int count = 0;
|
||||
while (localState.getExpecting() > 0 && count++ < 10) {
|
||||
int maxCount = 10;
|
||||
while (localState.getExpecting() > 0 && count++ < maxCount) {
|
||||
getNextResult(100);
|
||||
}
|
||||
return count < 10;
|
||||
return count < maxCount;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user