12 Commits

Author SHA1 Message Date
Jeromy
5cf4ab9b06 implement ContextDial, make connect respect context cancellation 2016-09-29 14:06:52 +02:00
Juan Batiz-Benet
971d567d6d ressurect addr polling :(
there's a rare case where dial returns successfully but for some
reason the RemoteAddr is not yet set. We wait here a while until
it is, and if too long passes, we fail. This is horrendous. This
shouldn't take more than a second. See also:
 * https://gist.github.com/jbenet/5c191d698fe9ec58c49d
 * http://cr.yp.to/docs/connect.html
2015-01-22 07:19:41 -08:00
Juan Batiz-Benet
cbfb4121cf implement non-block writes + select 2015-01-22 05:19:58 -08:00
Juan Batiz-Benet
a2e454f12a check if sockopt is avail 2015-01-20 19:32:37 -08:00
Juan Batiz-Benet
1e1968c474 cleaner description 2015-01-19 16:55:09 -08:00
Juan Batiz-Benet
f08ef69135 move fix to dialer.Dial 2015-01-19 03:23:04 -08:00
Juan Batiz-Benet
95e03a3349 avoid returning nil RemoteAddr -- horrible hack 2015-01-19 03:18:26 -08:00
Juan Batiz-Benet
8437d27d99 fixed udp (was totally broken) 2015-01-19 02:42:52 -08:00
Juan Batiz-Benet
eb450c7b6d much simpler resolve 2015-01-18 20:39:30 -08:00
Juan Batiz-Benet
d2ae70d361 doc 2015-01-18 20:23:46 -08:00
Juan Batiz-Benet
dbf0f586c2 Dial() func 2015-01-18 20:15:58 -08:00
Juan Batiz-Benet
9897e7337e initial thing works. needs tests. 2015-01-18 19:42:16 -08:00