Revert "Try to read instead of write from a TCP connection. This gives 'Connection refused' instead of 'Broken pipe', which is much more useful."

This reverts commit 088c367b77.
db4
Doug Coleman 2011-08-26 13:55:52 -05:00
parent cf6cc4b8f2
commit 4d38a02316
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ M: object (get-remote-address) ( handle local -- sockaddr )
SOL_SOCKET SO_OOBINLINE set-socket-option ;
: wait-to-connect ( port -- )
dup handle>> handle-fd f 0 read
dup handle>> handle-fd f 0 write
{
{ [ 0 = ] [ drop ] }
{ [ errno EAGAIN = ] [ dup +output+ wait-for-port wait-to-connect ] }