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
36a4ee7087
prevent NAT check if given nil multiaddr
2014-11-08 12:24:17 -08:00
Juan Batiz-Benet
d26fd58182
ctx closer races #270
2014-11-05 09:26:17 -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
Jeromy
05817373d0
Clear up naming around zero address
2014-11-03 20:42:40 +00:00
Jeromy
402fdd2db9
changes from PR
2014-11-03 01:45:45 +00:00
Brian Tiger Chow
cea398b8a7
fix(all) log.Debug -> log.Debugf
2014-10-30 06:35:29 -07:00
Jeromy
d92db12460
lots of logging
2014-10-26 00:45:40 +00:00
Jeromy
ab7491f809
logging, logging, and some minor logging
2014-10-25 14:50:22 -07:00
Juan Batiz-Benet
184c25430b
go-vet friendly codebase
...
- distinguish log.Error and log.Errorf functions
- Initialize structs with field names
- A bit of unreachable code (defers)
2014-10-25 03:46:39 -07:00
Juan Batiz-Benet
701035d5b0
handshake3 (addrs)
2014-10-22 05:25:31 -07:00
Juan Batiz-Benet
ac62d13e42
peerstore Put -> Add
...
Changed lots of peer use, and changed the peerstore to ensure
there is only ever one peer in use.
Fixed #174
2014-10-20 06:37:12 -07:00
Juan Batiz-Benet
9ca87fbb93
peer.Peer is now an interface
...

2014-10-20 03:26:46 -07:00
Juan Batiz-Benet
3d2ba37445
moved ctxcloser to own pkg
2014-10-19 06:38:13 -07:00
Juan Batiz-Benet
d17292a4c2
differentiate ports cause timing.
2014-10-19 06:29:18 -07:00
Juan Batiz-Benet
aa70bbaf15
evil deadlock that wasn't.
...
important to always reread your code.
2014-10-19 06:21:08 -07:00
Juan Batiz-Benet
29ab6dec60
added msg counters to logs
2014-10-19 05:49:07 -07:00
Juan Batiz-Benet
63d6ee6daa
multiconn in swarm
2014-10-19 05:05:28 -07:00
Juan Batiz-Benet
4783332b11
fixed tests
2014-10-19 02:05:29 -07:00
Juan Batiz-Benet
f8d70f344b
simultaneous open should work for now
...
It's a patch, really. it's not the full multiconn fix.
2014-10-18 20:01:27 -07:00
Juan Batiz-Benet
f2e428d41b
moved versionhandshake to conn
2014-10-18 04:52:45 -07:00
Juan Batiz-Benet
d47115bca0
swarm: msg wrapping
2014-10-18 04:37:31 -07:00
Juan Batiz-Benet
5d9b1f8b1a
swarm bugfix: dial peer out
2014-10-18 04:36:20 -07:00
Juan Batiz-Benet
1edc5a4613
updated Conn and Swarm
...
This Commit changes the relationship between Conn and Swarm.
After this, Conn is significantly more autonomous, and follows
an interface.
From here, it will be very easy to make the MultiConn (that
handles multiple Conns per peer).
2014-10-18 04:36:19 -07:00
Juan Batiz-Benet
ccaa490c91
better peer gen
2014-10-18 04:28:26 -07:00
Juan Batiz-Benet
f10b4bd8b3
fixed old swarm test
2014-10-18 04:28:26 -07:00
Juan Batiz-Benet
577f8fe807
commenting out platform specific code
2014-10-18 04:28:24 -07:00
Juan Batiz-Benet
d113aa8c1d
no longer store incoming addrs
2014-10-18 04:28:24 -07:00
Juan Batiz-Benet
a2d55f36bd
removed DialAddr
2014-10-18 04:28:24 -07:00
Juan Batiz-Benet
1b1ef6aa09
add local to net/conn
2014-10-18 04:28:23 -07:00
Henry
0f47b93005
addressed CR by @jbenet
2014-10-16 14:07:20 +02:00
Henry
67e04f0d29
changed message from SemVer to Handshake1
2014-10-16 13:57:45 +02:00
Henry
6f8a89cd8d
renamed version pkg to handshake
2014-10-16 13:37:32 +02:00
Henry
9dc58639fa
dont need coreos/semver yet
2014-10-16 13:00:43 +02:00
Henry
78eb349360
fixed Compatible and added a small test case
2014-10-16 12:29:33 +02:00
Henry
2a5b3eaa71
compare versions for compatibility
2014-10-16 12:09:43 +02:00
Henry
0075a352da
only send local version once
2014-10-16 12:03:35 +02:00
Henry
6b0440c050
versionExchange: first stab in the dark
2014-10-16 11:35:54 +02:00
Juan Batiz-Benet
0bd64e7f71
move net -> multiaddr/net
...
transition our use of the net package to multiaddr/net
2014-10-11 03:24:35 -07:00
Juan Batiz-Benet
917be90437
updated multiaddr for net pkg
2014-10-11 03:07:36 -07:00
Jeromy
a7b69500b1
address concerns in PR and make log stuff more fun
2014-10-10 13:18:20 -07:00
Jeromy
280c7e7e06
implement diagnostics service
2014-10-10 13:18:19 -07:00
Juan Batiz-Benet
972c0f7b4b
u.DOut -> log.Debug
...
and other logging switches. I kept the u.PErr and u.POut in cli
commands, as those do need to write raw output directly.
2014-10-09 04:50:22 -07:00
Juan Batiz-Benet
77fccaa2f3
Obviated need for .ID.Pretty() all over the place.
2014-10-06 04:23:55 -07:00