Deadlocks in ExpectOutputStream
Matthew White
mwhite@oblix.com
Thu, 15 Jan 2004 13:07:44 -0800
This is a multi-part message in MIME format.
------_=_NextPart_001_01C3DBAB.9EB1B29D
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Hi,
=20
I have been trying to figure out a few problems relating to
the RemoteShellScript example code. I have written an application which
directly calls the run method of RemoteShellScript, and I have run into
at least 2 nasty bugs regarding synchronization. The first bug that I
encountered was when a large amount of output was received from the
command that I was executing. After a certain number of messages, output
would hang, and so would the code. I managed to work around this by
preventing the code from producing the large amount of output (an error
was causing the output). Now, I am encountering a situation where
somehow either the end marker is received out of sequence, or it is not
received at all (I can't tell which), and, as a result, the application
hangs. It is odd because I have made MANY successful calls prior to this
problematic one with no problems, and I have even made the exact same
call once previously on the machine. Any idea what could be happening or
how I can fix it?
=20
Thanks in advance,
Matt
------_=_NextPart_001_01C3DBAB.9EB1B29D
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<html>
<head>
<meta http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<meta name=3DGenerator content=3D"Microsoft Word 11 (filtered)">
<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
span.emailstyle17
{font-family:Arial;
color:windowtext;}
span.EmailStyle18
{font-family:Arial;
color:navy;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
{page:Section1;}
-->
</style>
</head>
<body lang=3DEN-US link=3Dblue vlink=3Dpurple>
<div class=3DSection1>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Hi,</span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'> </span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'> =
I have been trying to figure out a few problems relating to the
RemoteShellScript example code. I have written an application which =
directly
calls the run method of RemoteShellScript, and I have run into at least =
2 nasty
bugs regarding synchronization. The first bug that I encountered was =
when a
large amount of output was received from the command that I was =
executing.
After a certain number of messages, output would hang, and so would the =
code. I
managed to work around this by preventing the code from producing the =
large
amount of output (an error was causing the output). Now, I am =
encountering a
situation where somehow either the end marker is received out of =
sequence, or
it is not received at all (I can’t tell which), and, as a result, =
the
application hangs. It is odd because I have made MANY successful calls =
prior to
this problematic one with no problems, and I have even made the exact =
same call
once previously on the machine. Any idea what could be happening or how =
I can
fix it?</span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'> </span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Thanks in advance,</span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Matt</span></font></p>
</div>
</body>
</html>
------_=_NextPart_001_01C3DBAB.9EB1B29D--