Commit Graph

149 Commits

Author SHA1 Message Date
Jeromy
e965c53780 remove / prefix and close directories properly in query 2015-04-20 02:24:23 -07:00
Tommi Virtanen
24daeec70c Use flatfs to store objects under /blocks outside of LevelDB
WARNING: No migration performed! That needs to come in a separate
commit, perhaps amended into this one.

Migration must move keyspace "/b" from leveldb to the flatfs subdir,
while removing the "b" prefix (keys should start with just "/").
2015-04-20 02:24:23 -07:00
Tommi Virtanen
4f4b894627 Update vendored go-datastore, now has flatfs and mount 2015-04-20 02:22:46 -07:00
Juan Batiz-Benet
7eb4a92aba 0-to-1 fsrepo migration 2015-04-20 02:20:31 -07:00
Juan Batiz-Benet
ff34efba75 re-vendored hamming lib with license 2015-04-19 13:59:56 -07:00
Kristoffer Ström
2c3f9f2419 Add hamming distance calculation to bloom filters 2015-04-15 17:13:47 +02:00
Juan Batiz-Benet
dbef4efd38 updated goprocess to deal with memory leak 2015-04-12 04:40:22 -07:00
Kristoffer Ström
3d8e96a22e Make bloom filters simpler
These did not work before, and had some unnecessary complexity.

Now the filters use only one hashing function, no bignum arithmetic, and gets the additional bit positions by repeatedly hashing the result of prior hash.

Since we're not concerned about crypto hashing here, this should be a win.

External interfaces unchanged.
2015-04-07 18:03:15 +02:00
Jeromy
2c8cb9fc75 bandwidth metering on streams
humanize bandwidth output

instrument conn.Conn for bandwidth metrics

add poll command for continuous bandwidth reporting

move bandwidth tracking onto multiaddr net connections

another mild refactor of recording locations

address concerns from PR

lower mock nodes in race test due to increased goroutines per connection
2015-03-31 19:58:08 -07:00
Ho-Sheng Hsiao
bf22aeec0a Reorged imports from jbenet/go-ipfs to ipfs/go-ipfs
- Modified Godeps/Godeps.json by hand
- [TEST] Updated welcome docs hash to sharness
- [TEST] Updated contact doc
- [TEST] disabled breaking test (t0080-repo refs local)
2015-03-31 12:52:25 -07:00
Henry
c5a69db601 updated godeps 2015-03-23 09:51:44 +01:00
Juan Batiz-Benet
a3404f4abf updated goprocess ref 2015-03-23 01:10:07 -07:00
Juan Batiz-Benet
7777a231f0 updated goprocess -- bugfixes 2015-03-18 01:14:41 -07:00
Juan Batiz-Benet
9d167cd5e8 testfix: dont break 8k goroutine limit under race 2015-03-04 07:34:04 -08:00
Henry
faef01a17e update to recent bazil.org/fuse (drop custom Error, Intr dropped in favor or context.Context) 2015-03-01 13:47:52 +01:00
Henry
d743801638 godep: changed back to inflect upstream 2015-03-01 13:22:27 +01:00
Henry
d69bdecbc7 move back to upstream logrus 2015-03-01 00:59:33 +01:00
Henry
84262be070 godep&x/crypto: updated multihash and moved to x/crypto for blowfish 2015-03-01 00:49:44 +01:00
Henry
6cc6a80039 godeps: maybebtc renamed is account 2015-02-27 14:40:45 +01:00
Henry
74767f004f Revert "godeps: drop go-humanize"
shareness needs the go-random/random utility. Godep doesnt know that.
2015-02-27 13:37:24 +01:00
Henry
85b6126983 godeps: update go-uuid 2015-02-27 13:30:29 +01:00
Henry
cffef5b544 godeps: update fsnotify to v1.2.0 2015-02-27 13:29:25 +01:00
Henry
f6dacd4f6c godeps: drop go-humanize
wasn't used by ipfs directly, only by two main packages of dependencies that we tracks

github.com/h2so5/utp/benchmark/main.go
github.com/jbenet/go-random/random/random.go
2015-02-27 13:26:09 +01:00
Henry
59402803be updated inconshreveable/go-update to get new import location of kardianos/osext 2015-02-25 12:25:35 +01:00
Henry
92d08db7a5 rewrote import paths of go.net/context to use golang.org/x/context
- updated go-ctxgroup and goprocess
ctxgroup: AddChildGroup was changed to AddChild. Used in two files:
- p2p/net/mock/mock_net.go
- routing/dht/dht.go

- updated context from hg repo to git
prev. commit in hg was ad01a6fcc8a19d3a4478c836895ffe883bd2ceab. (context: make parentCancelCtx iterative)
represents commit 84f8955a887232b6308d79c68b8db44f64df455c in git repo

- updated context to master (b6fdb7d8a4ccefede406f8fe0f017fb58265054c)

Aaron Jacobs (2):
net/context: Don't accept a context in the DoSomethingSlow example.
context: Be clear that users must cancel the result of WithCancel.

Andrew Gerrand (1):
go.net: use golang.org/x/... import paths

Bryan C. Mills (1):
net/context: Don't leak goroutines in Done example.

Damien Neil (1):
context: fix removal of cancelled timer contexts from parent

David Symonds (2):
context: Fix WithValue example code.
net: add import comments.

Sameer Ajmani (1):
context: fix TestAllocs to account for ints in interfaces
2015-02-25 11:58:19 +01:00
Brian Tiger Chow
8f62ac8272 vendor: fzzy/radix/redis 2015-02-15 04:41:18 -08:00
Brian Tiger Chow
bcfa539272 vendor aws, s3
vendor: goamz/aws and goamz/s3
2015-02-14 14:13:55 -08:00
Juan Batiz-Benet
a4c522bcd4 go-multihash update 2015-02-07 12:53:10 -08:00
Brian Tiger Chow
4c920d0281 Revert "run make vendor (removes go-humanize)"
This reverts commit bbcc86b78e.

humanize is required for sharness. doh!
2015-02-04 15:38:38 -08:00
Brian Tiger Chow
bbcc86b78e run make vendor (removes go-humanize) 2015-02-04 15:32:16 -08:00
Juan Batiz-Benet
6f9c297f08 update multiaddr for ipfs addrs 2015-02-01 05:16:52 -08:00
Brian Tiger Chow
ddc5bb89d7 vendor inflection package (MIT) 2015-01-30 06:57:41 -08:00
Juan Batiz-Benet
7ae3706b6d fuse: no longer require fuse to compile ipfs
This commit removes the dependency on go-fuse-version, and thus the
fuse headers. It also introduces an elaborate troubleshooting process
that diagnoses whether fuse installed -- and which version -- with as
little requirements as possible (attept to use sysctl, fall-back on
the go-fuse-version binary, etc). It then nicely instructs the user
what to do next.
2015-01-28 05:18:41 -08:00
Juan Batiz-Benet
913a733e9b helpful panics 2015-01-26 13:45:01 -08:00
Juan Batiz-Benet
fe00ad8a2c nat upnp and pmp libs 2015-01-24 12:41:49 -08:00
Juan Batiz-Benet
eb79b1b637 Merge pull request #645 from jbenet/net-notif
Network Notifications
2015-01-24 10:25:53 -08:00
Juan Batiz-Benet
7e8a17aa7d updated goprocess for godep restore test 2015-01-24 09:33:09 -08:00
Juan Batiz-Benet
b63cbf5331 updated peerstream 2015-01-24 09:13:43 -08:00
Juan Batiz-Benet
4334f6fda3 Merge pull request #613 from jbenet/progress-bars
Progress Bars
2015-01-23 22:20:34 -08:00
Brian Tiger Chow
038ec6a5b3 feat: IPFSWatch 2015-01-23 19:06:30 -08:00
Matt Bell
487ef33e67 core/commands: Added progress bar to 'cat'
squash! core/commands: Added progress bar to 'cat'

Vendored progress bar lib
2015-01-23 18:29:30 -08:00
Juan Batiz-Benet
bb2d81ace2 Merge pull request #622 from jbenet/webui-commands
Webui Commands
2015-01-23 16:51:11 -08:00
Juan Batiz-Benet
bf1690f42e fixed fd leaks in go-reuseport 2015-01-23 16:17:49 -08:00
Juan Batiz-Benet
c43f97d64e updated goprocess, for periodic 2015-01-23 02:08:29 -08:00
Juan Batiz-Benet
f6278735ef net/diag: recursively decrement timeouts.
Not sure this works. we dont have tests for net diag.
We should make some.
cc @whyrusleeping.
2015-01-23 02:08:28 -08:00
Juan Batiz-Benet
8d08e1e3d6 reuseport: respect dialer timeout 2015-01-23 01:46:55 -08:00
Matt Bell
926b96463d core/commands: Added 'log read' command
squash! core/commands: Added 'log read' command

core/commands: Use a unidirectional channel for 'log read' output
2015-01-22 16:28:59 -08:00
Juan Batiz-Benet
ee4c727c83 update reuseport for the check 2015-01-20 19:34:49 -08:00
Juan Batiz-Benet
908ff837fd updated peerstream (race) 2015-01-20 11:26:55 -08:00
Juan Batiz-Benet
9062b9fe6c connect timing fixes to reuseport 2015-01-19 23:18:52 -08:00