You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@incubator.apache.org by Peter Royal <pr...@apache.org> on 2003/03/15 23:46:17 UTC
[altrmi] Bug in AbstractCompleteSocketStreamServer
I found a bug in the AbstractCompleteSocketStreamServer.
The code sets the internal state to STARTING, then fires off the thread
to monitor the socket, then sets the state to STARTED.
The thread that monitors the socket does its thing as long as the state
is STARTED. I'm seeing the monitor thread start and immediately exit
since the state has not yet been changed to started.
My question is, what is the proper fix, skipping the STARTING state and
going straight to STARTED? Or set STARTED right before spawning the
monitor thread, or in the monitor thread go into a loop if the state is
STARTING?
-pete
--
peter royal -> proyal@apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@incubator.apache.org
For additional commands, e-mail: general-help@incubator.apache.org
Re: [altrmi] Bug in AbstractCompleteSocketStreamServer
Posted by Peter Royal <pr...@apache.org>.
On Saturday, March 15, 2003, at 05:55 PM, Paul Hammant wrote:
> Ooooh, been looking for something like that. Marathon (
> http://marathonman.sourceforge.net/ ) is being bugged by an issue that
> sounds like it be caused by that.
>
> Lets go for START & STOP. The intermediate states were just just
> over-design anyway.
ok
> Clearly a case of a missing or malfunctionig unit test.....
I'll make one.. i was offline when i found and fixed it and had to
comment out the unit tests since i needed to upgrade my junit.
-pete
---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@incubator.apache.org
For additional commands, e-mail: general-help@incubator.apache.org
Re: [altrmi] Bug in AbstractCompleteSocketStreamServer
Posted by Paul Hammant <Pa...@yahoo.com>.
Peter,
Ooooh, been looking for something like that. Marathon (
http://marathonman.sourceforge.net/ ) is being bugged by an issue that
sounds like it be caused by that.
Lets go for START & STOP. The intermediate states were just just
over-design anyway.
Clearly a case of a missing or malfunctionig unit test.....
- Paul
> I found a bug in the AbstractCompleteSocketStreamServer.
>
> The code sets the internal state to STARTING, then fires off the
> thread to monitor the socket, then sets the state to STARTED.
>
> The thread that monitors the socket does its thing as long as the
> state is STARTED. I'm seeing the monitor thread start and immediately
> exit since the state has not yet been changed to started.
>
> My question is, what is the proper fix, skipping the STARTING state
> and going straight to STARTED? Or set STARTED right before spawning
> the monitor thread, or in the monitor thread go into a loop if the
> state is STARTING?
> -pete
>
---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@incubator.apache.org
For additional commands, e-mail: general-help@incubator.apache.org
Re: [altrmi] Bug in AbstractCompleteSocketStreamServer
Posted by Peter Royal <pr...@apache.org>.
On Saturday, March 15, 2003, at 05:53 PM, Nicola Ken Barozzi wrote:
> Peter Royal wrote, On 15/03/2003 23.46:
>> I found a bug in the AbstractCompleteSocketStreamServer.
>
> Peter, we should move these development mails to
> projects@incubator.apache.org
>
> It's not your fault, the documentation is lacking.
Didn't know that it existed :) Thanks, will use it in the future.
-pete
---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@incubator.apache.org
For additional commands, e-mail: general-help@incubator.apache.org
Re: [altrmi] Bug in AbstractCompleteSocketStreamServer
Posted by Nicola Ken Barozzi <ni...@apache.org>.
Peter Royal wrote, On 15/03/2003 23.46:
> I found a bug in the AbstractCompleteSocketStreamServer.
Peter, we should move these development mails to
projects@incubator.apache.org
It's not your fault, the documentation is lacking.
--
Nicola Ken Barozzi nicolaken@apache.org
- verba volant, scripta manent -
(discussions get forgotten, just code remains)
---------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@incubator.apache.org
For additional commands, e-mail: general-help@incubator.apache.org