|
Lines 1-5
Link Here
|
| 1 |
/******************************************************************************* |
1 |
/******************************************************************************* |
| 2 |
* Copyright (c) 2006, 2009 IBM Corporation and others. |
2 |
* Copyright (c) 2006, 2010 IBM Corporation and others. |
| 3 |
* All rights reserved. This program and the accompanying materials |
3 |
* All rights reserved. This program and the accompanying materials |
| 4 |
* are made available under the terms of the Eclipse Public License v1.0 |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
| 5 |
* which accompanies this distribution, and is available at |
5 |
* which accompanies this distribution, and is available at |
|
Lines 16-21
Link Here
|
| 16 |
* David McKnight (IBM) - [243699] [dstore] Loop in OutputHandler |
16 |
* David McKnight (IBM) - [243699] [dstore] Loop in OutputHandler |
| 17 |
* David McKnight (IBM) [249715] [dstore][shells] Unix shell does not echo command |
17 |
* David McKnight (IBM) [249715] [dstore][shells] Unix shell does not echo command |
| 18 |
* David McKnight (IBM) [282919] [dstore] server shutdown results in exception in shell io reading |
18 |
* David McKnight (IBM) [282919] [dstore] server shutdown results in exception in shell io reading |
|
|
19 |
* Peter Wang (IBM) [299422] [dstore] OutputHandler.readLines() not compatible with servers that return max 1024bytes available to be read |
| 19 |
*******************************************************************************/ |
20 |
*******************************************************************************/ |
| 20 |
|
21 |
|
| 21 |
package org.eclipse.rse.internal.dstore.universal.miners.command; |
22 |
package org.eclipse.rse.internal.dstore.universal.miners.command; |
|
Lines 139-145
Link Here
|
| 139 |
|
140 |
|
| 140 |
// if there's none, wait a bit and return true to continue |
141 |
// if there's none, wait a bit and return true to continue |
| 141 |
if (available <= 0) { |
142 |
if (available <= 0) { |
| 142 |
sleep(100); |
143 |
sleep(1500); |
| 143 |
available = _reader.available(); |
144 |
available = _reader.available(); |
| 144 |
} |
145 |
} |
| 145 |
return available; |
146 |
return available; |
|
Lines 245-251
Link Here
|
| 245 |
|
246 |
|
| 246 |
int lastIndex = 0; |
247 |
int lastIndex = 0; |
| 247 |
|
248 |
|
| 248 |
available = _reader.available(); |
249 |
available = checkAvailable(); |
| 249 |
if (available > 0) |
250 |
if (available > 0) |
| 250 |
{ |
251 |
{ |
| 251 |
while (!_endOfStream && lastIndex < MAX_OFFSET) |
252 |
while (!_endOfStream && lastIndex < MAX_OFFSET) |