Jeromy
ed4509923c
tracking down a bug dhthell found, added asserts and better logging.
2014-12-05 20:53:26 +00:00
Jeromy
0abc72c062
move some variables into strategy
2014-12-05 20:53:21 +00:00
Brian Tiger Chow
0fc95d5add
log(swarm, netmessage) Event: connSetup(begin|success)
...
+ netmessage is now loggable
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-11-25 06:16:40 -08:00
Jeromy
34da5f039c
log formatting (info -> infof)
2014-11-21 03:54:26 +00:00
Brian Tiger Chow
93cf2bb176
style(net/conn) fmt -> debugerror
...
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-11-20 16:14:23 -08:00
Juan Batiz-Benet
f99117bcd2
swarm: try all peer's addresses
...
For simplicity this is sequential. This will be bad latency given
RTTs for all the handshakes, etc. Later on can make async or
at least open based on some priority of the channel.
2014-11-20 09:14:49 -08:00
Juan Batiz-Benet
48879dd56c
conn: added (*dialer).DialAddr
2014-11-20 09:14:49 -08:00
Juan Batiz-Benet
c7fd1d9ddb
swarm: refactored multiconn creation
2014-11-20 09:14:49 -08:00
Juan Batiz-Benet
e0dab75d54
swarm: better err on listen fail
2014-11-20 09:14:48 -08:00
Juan Batiz-Benet
fc6bab7b73
net/conn: moved zero addr error
2014-11-20 01:27:18 -08:00
Juan Batiz-Benet
43452fdeb7
updated multiaddr + multiaddr-net
...
I broke out multiaddr/net to its own package so
that multiaddr parsing could remain lean. multiaddr-net
will vendor special implementations of protocols (like utp)
2014-11-20 00:58:48 -08:00
Juan Batiz-Benet
faab984278
net: expose GetConnections
2014-11-18 00:47:42 -08:00
Jeromy
0de12b5d36
implement ipfs id in the new commands library
2014-11-16 16:46:06 -08:00
Brian Tiger Chow
6291c25455
fix(net/conn) Set peer to "Remote" in Dial method
...
@jbenet we may want to consider setting the default type to Remote. I
left the default as Unspecified just for safety.
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-11-16 07:01:01 -08:00
Brian Tiger Chow
6fec76d93e
fix(imports) misc
...
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-11-16 07:01:00 -08:00
Brian Tiger Chow
25c98e8e61
refactor(eventlog) elog -> eventlog
...
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
# TYPES
# feat
# fix
# docs
# style (formatting, missing semi colons, etc; no code change):
# refactor
# test (adding missing tests, refactoring tests; no production code change)
# chore (updating grunt tasks etc; no production code change)
Signed-off-by: Brian Tiger Chow <brian.holderchow@gmail.com>
2014-11-16 07:01:00 -08:00
Brian Tiger Chow
eb46fbed82
perform some swarm logging
...
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-11-16 07:00:59 -08:00
Brian Tiger Chow
ed4a8eb782
chore(tests) add Short() -> SkipNow() to slowest tests
...
vanilla:
21.57 real 45.14 user 8.51 sys
short:
14.40 real 31.13 user 5.56 sys
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-11-15 02:10:53 -08:00
Juan Batiz-Benet
1bde67ddf1
bugfix: swarm resolveUnspecAddr idiocy
2014-11-09 19:45:28 -08:00
Jeromy
be5d01b6a6
more doc comments
2014-11-08 22:44:37 -08:00
Jeromy
c62acb2763
copy handshake readme into a doc.go for pretty godoc results
2014-11-08 21:42:37 -08:00
Jeromy
b0f4b7c89d
some net docs
2014-11-08 21:42:36 -08:00
Jeromy
8c20921a95
some more docs
2014-11-08 21:42:36 -08:00
Jeromy
36a4ee7087
prevent NAT check if given nil multiaddr
2014-11-08 12:24:17 -08:00
Brian Tiger Chow
390f4d7419
readability(util) Do -> ContextDo
...
@jbenet
2014-11-05 10:07:16 -08:00
Brian Tiger Chow
68618f3fb8
fix(net) use Do to respect the caller's context
2014-11-05 10:04:20 -08:00
Brian Tiger Chow
23096de3c4
fix(net) pass contexts to dial peer
2014-11-05 10:04:20 -08:00
Juan Batiz-Benet
3bc2281c51
fixed race in multiconn
2014-11-05 09:44:51 -08:00
Juan Batiz-Benet
65f95a1940
mux test race #270
2014-11-05 09:26:17 -08:00
Juan Batiz-Benet
d26fd58182
ctx closer races #270
2014-11-05 09:26:17 -08:00
Juan Batiz-Benet
40aea2a934
handshake: log whether new addr observed
2014-11-05 04:05:30 -08:00
Juan Batiz-Benet
4989dcafed
swarm + handshake: better observed addr check
...
The check needed knowledge of the _listen_ addresses,
not just the interface addresses. Also, the handshake now
sends out all the addresses we accumulate about ourselves.
(this may be bad in the long run, but useful now to test)
2014-11-05 04:01:38 -08:00
Juan Batiz-Benet
0135e3ebbe
swarm + net: add explicit listen addresses
2014-11-05 04:00:49 -08:00
Juan Batiz-Benet
24f319b549
Merge pull request #268 from jbenet/config-version-init
...
Initialize Config Version
2014-11-04 19:18:45 -08:00
Juan Batiz-Benet
866c2c8915
updates + config: moved location of current version number
2014-11-04 18:58:15 -08:00
Brian Tiger Chow
98ebe2f3ec
hotfix(vendor)
2014-11-04 08:48:27 -08:00
Juan Batiz-Benet
d303ff45f8
Merge pull request #253 from jbenet/net-detect
...
NAT detect
2014-11-03 16:53:09 -08:00
Jeromy
3e62042745
fix up NAT check and clear up naming
2014-11-03 15:10:44 -08:00
Jeromy
05817373d0
Clear up naming around zero address
2014-11-03 20:42:40 +00:00
Jeromy
88bf39118c
comment comment comment comment
2014-11-03 03:02:56 +00:00
Jeromy
402fdd2db9
changes from PR
2014-11-03 01:45:45 +00:00
Jeromy
094baf6fbf
error out if attempting connection to loopback
2014-11-03 00:28:07 +00:00
Jeromy
cb2fb9cfe6
print NAT if detected
2014-11-02 21:59:59 +00:00
Jeromy
2eac5aeec6
begin code for NAT detection
2014-11-02 21:19:22 +00:00
Jeromy
98f56ab7e2
remove sha1 from hmac hash suite options
2014-11-01 16:07:56 -07:00
Jeromy
a8069024e9
cut down on allocations
2014-11-01 16:07:56 -07:00
Jeromy
027920540f
more memory tweaks
2014-11-01 16:07:56 -07:00
Jeromy
9b1c99e9aa
shrink msgio buffer size to decrease memory pressure
2014-11-01 16:07:56 -07:00
Jeromy
f89cfc1108
moved pipes package
2014-11-01 16:07:56 -07:00
Jeromy
07733b17b3
msgio pooling first hack
2014-11-01 16:07:56 -07:00