This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: echo "$(echo '\r')" oddity

This is exactly the problem I am seeing and it also happens with a few other
tests. When using 
  socat -d -d -d -v
it turns out that the server process is sending back the text (< hello) but
this text never ends up at the client. This also happens when the server is
running on Cygwin and the client is running on Linux (change the client
command to use the server's IP address instead of localhost). My guess was
that this is a flushing problem and not a race condition; BTW, I am 99.9999%
convinced that this is caused by socat and not by the openssl server

hmmmm I was hoping somebody had a terribly bright idea before I started
using strace but I guess that's what I will have to do ....



> -----Original Message-----
> From: 
> [] On Behalf Of Brian Dessent
> Sent: Monday, May 09, 2005 12:06
> To: ''
> Subject: Re: echo "$(echo '\r')" oddity
> Jan Just Keijser wrote:
> > in interactive mode the command seems to work fine. What happens if 
> > you build socat and then run the test script (./ ? 
> Which tests 
> > does it fail on?
> fails on the openssl test for me too.  I can't really 
> follow exactly what the testcase is doing though.  It looks 
> like there's a race condition somewhere because you get the 
> previous command's output with each command:
> $ socat -t0.1 exec:'openssl s_server -accept 12009 -quiet 
> -cert cacert.pem -key privkey.pem' pipe &
> $ echo -n "1" | socat -t0.1  -
> openssl:localhost:12009,cafile=cacert.pem,verify=1
> $ echo -n "2" | socat -t0.1  -
> openssl:localhost:12009,cafile=cacert.pem,verify=1
> 1
> $ echo -n "3" | socat -t0.1  -
> openssl:localhost:12009,cafile=cacert.pem,verify=1
> 2
> $ echo -n "4" | socat -t0.1  -
> openssl:localhost:12009,cafile=cacert.pem,verify=1
> 3
> I don't know what's going there.  You'd probably have to 
> delve into an strace to find out.
> Brian
> --
> Unsubscribe info:
> Problem reports:
> Documentation:
> FAQ:         

This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.

Unsubscribe info:
Problem reports:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]