Commit graph

57 commits

Author SHA1 Message Date
John Jones
6160dd841b Big changes for the yamux protocol
The Stream interface changed, so it touches many areas. But this change
will help with memory allocation and a cleaner interface.
2017-11-08 10:54:31 -05:00
jmjatlanta
f9bec0ac20 New way of swarm connection 2017-10-23 15:22:12 -05:00
jmjatlanta
91f5c50a71 Network write methods now expect struct StreamMessage 2017-10-23 09:48:19 -05:00
jmjatlanta
9afaf535d6 Reading from stream now uses a StreamMessage struct 2017-10-23 09:03:30 -05:00
jmjatlanta
e394723fb6 Initializing uninitialized variable. 2017-10-12 12:57:20 -05:00
jmjatlanta
cfde84b15c Beginnings of stream locking 2017-10-12 12:38:00 -05:00
John Jones
98b1e0fef4 Return a copy of the block from the exchange, not the block itself
Returning the block itself will cause problems when a client deallocates
the block.
2017-10-09 10:01:29 -05:00
John Jones
71c216defb Better handling of bad memory allocation 2017-10-05 15:14:47 -05:00
John Jones
630985c698 Adjustments for testing 2017-09-25 15:11:44 -05:00
jmjatlanta
abb607c905 fixing name publish and resolve 2017-09-25 13:37:16 -05:00
a907f1dd2d
The API changed pthread to scope, so it can load multiple instances. 2017-09-20 14:39:26 -03:00
John Jones
395c7d94cf More implementation of ipns 2017-09-14 14:58:53 -05:00
jmjatlanta
3eec8553a6 Began implementing updates to journal timestamp 2017-09-13 12:40:48 -05:00
John Jones
a9481631df Several memory leak fixes for journal code 2017-09-07 18:45:09 -05:00
John Jones
7dbb6fca29 multistream protocol now has a protocol interface 2017-09-04 11:02:48 -05:00
John Jones
407f85bc89 More testing and compat fixes for ipfs 2017-08-31 16:41:10 -05:00
jmjatlanta
1eab27fa0e journalio working, needs tuning 2017-08-31 06:41:54 -05:00
jmjatlanta
5de67539ef correctly adding request to peer_request_queue 2017-08-16 07:34:28 -05:00
jmjatlanta
c58bfc9b1e Fixed loop 2017-08-16 07:08:39 -05:00
jmjatlanta
d226e480c9 Fixing repeated needless sends 2017-08-09 12:09:44 -05:00
John Jones
ced96dcf81 IPFS protocols now implement an interface to make marshalling easier 2017-08-09 08:04:17 -05:00
John Jones
c58134db1c Fixing memory leaks 2017-08-08 20:40:35 -05:00
jmjatlanta
6754ba77b3 Removing noise 2017-08-03 17:57:01 -05:00
jmjatlanta
46b6921ddf added more debugging messages 2017-08-03 17:51:34 -05:00
John Jones
3cc75058f0 Fix of memory leaks 2017-08-03 17:46:20 -05:00
jmjatlanta
ef53c886a0 Verify good connection before using it. 2017-08-03 13:36:53 -05:00
jmjatlanta
d1d4d19fa8 Handling details of bitswap 2017-08-03 11:16:58 -05:00
John Jones
e58909b875 Handle entry in WantlistQueue only once if we found provider 2017-08-02 11:43:48 -05:00
John Jones
3fa822aed6 Merge branch 'master' of https://github.com/kenCode-de/c-ipfs 2017-08-02 10:53:28 -05:00
John Jones
5910d63c3d Clean up when we receive a block we wanted 2017-08-02 10:53:14 -05:00
jmjatlanta
17dbad3bce clean up peer request queue after message send 2017-08-02 10:52:35 -05:00
jmjatlanta
e5e565272e Continue to listen to connected peers within bitswap engine 2017-08-02 09:43:27 -05:00
John Jones
9131559a04 correctly handling send of wantlist 2017-08-02 09:04:37 -05:00
jmjatlanta
986d054c6c code cleanup 2017-08-02 08:53:34 -05:00
jmjatlanta
0638996684 processing want list 2017-08-02 07:04:06 -05:00
jmjatlanta
836fb5387b Attempting to fulfill remote requests 2017-07-31 17:59:51 -05:00
jmjatlanta
fa7a6826b1 Change in secio method signature 2017-07-31 16:36:52 -05:00
jmjatlanta
bc01f36839 tweaks to bitswap message 2017-07-31 15:19:17 -05:00
John Jones
ac5a622400 Passing SessionContext instead of Stream 2017-07-31 13:54:09 -05:00
John Jones
3a68619016 Fixed mem leak and more testing 2017-07-31 13:32:09 -05:00
John Jones
e22da601ea bug fixes to client side bitswap 2017-07-31 10:01:06 -05:00
John Jones
d969f48324 implementation of bitswap network receive 2017-07-31 08:16:52 -05:00
John Jones
059a3286c9 More bitswap implementation 2017-07-31 06:43:15 -05:00
John Jones
b3bb857f3a Still testing bitswap 2017-07-27 14:33:19 -05:00
John Jones
73d7d5daed More implementation of bitswap 2017-07-27 12:05:41 -05:00
John Jones
e1135fef3b Beginnings of the multithreaded engine
This engine has 2 threads. One to process the request queue, the other
to gather up and build peer messages and send them.
2017-07-27 08:38:57 -05:00
John Jones
10aa932e08 Unit testing and memory fixes 2017-07-26 09:48:04 -05:00
John Jones
692d3406c8 Implementation of a universal bitswap queue
This queue stores both local and remote requests for blocks
2017-07-26 07:38:47 -05:00
John Jones
108792ca44 More changes for bitswap 2017-07-24 17:58:39 -05:00
John Jones
3a8a85e628 More buildout of the Bitswap protocol 2017-07-24 16:03:56 -05:00