Commit Graph

17 Commits

Author SHA1 Message Date
Matt Joiner
45ebc775de Improve Available doc comment 2019-01-02 16:14:32 +11:00
Matt Joiner
7729dc3568 Switch to new Control interface 2019-01-02 16:14:32 +11:00
Steven Allen
ca678b92ce detect dials to self
Dialing oneself with reuseport enabled results in a loopback socket. This is
totally useless and causes weird hard-to-debug problems so close it and return
an error instead.
2018-01-18 23:54:32 -08:00
Steven Allen
b471add9c1 fix building on windows 2017-11-08 19:53:42 -08:00
Steven Allen
e570a4491d switch to golang.org/x/sys
fixes #22
2017-10-25 01:01:20 -07:00
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