Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 299433
Collapse All | Expand All

(-)miners/org/eclipse/rse/internal/dstore/universal/miners/command/CommandMinerThread.java (-2 / +8 lines)
Lines 1-5 Link Here
1
/*******************************************************************************
1
/*******************************************************************************
2
 * Copyright (c) 2003, 2009 IBM Corporation and others.
2
 * Copyright (c) 2003, 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 24-29 Link Here
24
 *  David McKnight (IBM) - [286671] Dstore shell service interprets < and > sequences
24
 *  David McKnight (IBM) - [286671] Dstore shell service interprets < and > sequences
25
 *  David McKnight     (IBM)   [290743] [dstore][shells] allow bash shells and custom shell invocation
25
 *  David McKnight     (IBM)   [290743] [dstore][shells] allow bash shells and custom shell invocation
26
 *  David McKnight     (IBM)   [287305] [dstore] Need to set proper uid for commands when using SecuredThread and single server for multiple clients[
26
 *  David McKnight     (IBM)   [287305] [dstore] Need to set proper uid for commands when using SecuredThread and single server for multiple clients[
27
 *  Peter Wang         (IBM)   [299422] [dstore] OutputHandler.readLines() not compatible with servers that return max 1024bytes available to be read
27
 *******************************************************************************/
28
 *******************************************************************************/
28
29
29
package org.eclipse.rse.internal.dstore.universal.miners.command;
30
package org.eclipse.rse.internal.dstore.universal.miners.command;
Lines 672-678 Link Here
672
673
673
				writer.write(input);
674
				writer.write(input);
674
				writer.newLine();
675
				writer.newLine();
675
				writer.flush();
676
				try{
677
					writer.flush();
678
				}
679
				catch (Exception e){
680
					//TODO find actual cause of problem. This only fails on certain machines. 
681
				}
676
682
677
				if (!_isWindows && (input.startsWith("cd ") || input.equals("cd"))) //$NON-NLS-1$ //$NON-NLS-2$
683
				if (!_isWindows && (input.startsWith("cd ") || input.equals("cd"))) //$NON-NLS-1$ //$NON-NLS-2$
678
				{
684
				{
(-)miners/org/eclipse/rse/internal/dstore/universal/miners/command/OutputHandler.java (-3 / +4 lines)
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)

Return to bug 299433