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


Hi Brian,

in interactive mode the command seems to work fine. What happens if you
build socat and then run the test script (./test.sh) ? Which tests does it
fail on?

What DOES fail for me is

$ socat -t 0.1 exec:'openssl s_server -accept 12002 -quiet -cert cacert.pem
-key privkey.pem' pipe &
$ echo hello | socat -d -d -t 0.1 -
openssl:localhost:12002,cafile=cacert.pem,verify=1

so piping text into the "client" socat is failing on me. 

regards,

JJK

> I built socat and tried the very same commands you did, and 
> it seems to work fine.  I normally run a CVS build of the 
> Cygwin DLL but I switched to 1.5.16 and it works fine with 
> that version as well.
> 
> $ socat -t 0.1 exec:'openssl s_server -accept 12002 -quiet 
> -cert cacert.pem -key privkey.pem' pipe & [1] 3276
> 
> $ socat -d -d -t 0.1 - 
> openssl:localhost:12002,cafile=cacert.pem,verify=1
> 2005/05/04 02:19:30 socat[2460] N reading from and writing to stdio
> 2005/05/04 02:19:30 socat[2460] N opening connection to AF=2 
> 127.0.0.1:12002
> 2005/05/04 02:19:30 socat[2460] N successfully connected from 
> local address AF=2
> 127.0.0.1:4335
> 2005/05/04 02:19:30 socat[2460] N SSL connection using 
> DHE-RSA-AES256-SHA
> 2005/05/04 02:19:30 socat[2460] N starting data transfer loop 
> with FDs [0,1] and [3,3] hello hello goodbye goodbye
> 2005/05/04 02:19:34 socat[2460] N socket 1 (fd 0) is at EOF
> 2005/05/04 02:19:34 socat[2460] N socket 2 (fd 3) is at EOF
> 2005/05/04 02:19:34 socat[2460] W shutdown(3, 2): Bad file descriptor
> 2005/05/04 02:19:34 socat[2460] N exiting with status 0
> 
> The hello and goodbye I each typed once, the second one was 
> echoed back to me.  I then hit ^D.  If there was any network 
> problems I would not have expected the ssl handshake to 
> succeed (I used a dummy cert on both sides as you can tell.)
> 

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:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


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