ref: 8113f1c494f6430de52b5d005ceb6bda50091a09
parent: dff266766cc5bf90588760734851b7ac636b5a6f
author: Ori Bernstein <[email protected]>
date: Tue May 27 20:24:43 EDT 2014
Reduce chattiness of dial. It had too many debug prints.
--- a/libstd/dial.myr
+++ b/libstd/dial.myr
@@ -62,7 +62,6 @@
match getaddr(host)
| `Ipv4 bits:
- put("connecting to %ub.%ub.%ub.%ub:%i\n", bits[0], bits[1], bits[2], bits[3], portnum)
sa.fam = Afinet
sa.addr = bits
sa.port = hosttonet(portnum)
@@ -70,16 +69,12 @@
-> `Failure "ipv6 not yet supported"
;;
- put("socketing...\n")
sock = socket(sa.fam, socktype, 0)
- put("socketed\n")
if sock < 0
-> `Failure "failed to connect to socket"
;;
var err
- put("connecting...\n")
err = connect(sock, (&sa) castto(sockaddr#), sizeof(sockaddr_in))
- put("connected\n")
if err < 0
put("Errno %i\n", -err)
close(sock)