Michal Suchanek
8/7/2008 1:16:00 PM
On 07/08/2008, Robert Klemme <shortcutter@googlemail.com> wrote:
> 2008/8/7 Michal Suchanek <hramrach@centrum.cz>:
>
> > On 07/08/2008, Robert Klemme <shortcutter@googlemail.com> wrote:
> >>
> >> And it misses another line at the beginning:
> >>
> >> $defout.sync = true
> >>
> >> :-)
> >
> > Fixing the mockup is not the right way,
>
>
> Maybe I am missing your point but the buffering in the mock client is
> certainly delaying the complete process. Also, I did not only add
> that line to mock.rb but provided a different client implementation.
> Did you actually try it out?
Sorry, I did not try that yet.
>
>
> > I need the ruby script working
> > with the application which is represented by the mockup. Also doing 5
> > repetitions is insufficient to test for the problem. It fails only in
> > few % of cases.
>
>
> Well, you can imagine that I did not want to post 1,000,000 lines
> here. Do the errors you report show up with my code when increasing
> the number of lines?
>
> I usually start with a simple bit to verify the basic functionality is
> ok and build from there. I do not understand, why you go to all this
> fd duplicating stuff. Also, I find your processor quite complex and
> it seems that for the error you are seeing a simpler program will be
> sufficient.
I came from the other end: I have a script that used to work so I
tried to rip minimal piece of the script so that if a modification to
the example makes it work I would be able to apply the modification
back to the original script.
>
> Btw, what does "writing causes stdin to be read into the program" exactly mean?
Did you try testt2?
That prints out the stuff that you feed it on stdin for some reason I
don't understand at all.
Thanks
Michal