Hi all
Say we have two machines set up, ClientPC and ServerPC. On ClientPC I
run stunnel accepting a connection on a local port and connecting to an
stunnel port on ServerPC. On ServerPC I run stunnel accepting a
connection on the local stunnel port and connecting to the 'encryption
unaware' server on another port on the same ServerPC machine. OK,
pretty simple stuff so far.
The problem is, when I connect to ClientPC with the 'encryption unaware'
client app. then I always get a successful connection, even if there is
no server running on ServerPC. Of course once the client has a
successful connection, it then performs a write(), and that fails with
'Connection reset by peer'. Really, since there is no server running on
ServerPC, I want the connect() to stunnel on ClientPC to fail. Is there
a way to do this?