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
parent
cf6cc4b8f2
commit
4d38a02316
|
@ -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 ] }
|
||||
|
|
Loading…
Reference in New Issue