summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-01-02Stop bootstrapping when table is fullSam Truzjan
2014-01-02Add bucket count optionSam Truzjan
2014-01-02Fix query timeoutsSam Truzjan
2014-01-02Remove useless insertNode callSam Truzjan
2014-01-02Add non operator version of (<@>)Sam Truzjan
2014-01-02Use optTimeout option in each rpc callSam Truzjan
2014-01-02Use K parameter in DHT sessionSam Truzjan
2014-01-02Add DHT optionsSam Truzjan
2014-01-02Add documentation to the root DHT moduleSam Truzjan
2014-01-02Add documentation to RoutingSam Truzjan
2014-01-01Add PieceHash type synonymSam Truzjan
2014-01-01Rename HashArray to HashList.Sam Truzjan
Hash list is well established name for this kind of objects. Also `hash array' sometimes refer for `hash table's but not `hash list's.
2013-12-31Add default instance for NodeAddrSam Truzjan
2013-12-30Add module header to DHT MessagesSam Truzjan
2013-12-30Add documentation to Token moduleSam Truzjan
2013-12-30Add basic spec for token mapSam Truzjan
2013-12-29Fix typoSam Truzjan
2013-12-29Enable all query handlers by defaultSam Truzjan
2013-12-29Add hashable instances for all address typesSam Truzjan
2013-12-29Fix instance Alternative RoutingSam Truzjan
2013-12-29Keep routing table in MVar.Sam Truzjan
Since table updates is not atomic operations and may perform IO we should be able to gain /exclusive/ access to the table. Consider insertNode function: 1) Thread A read table_1; 2) Thread B read table_1; 3) Thread B ping node Z and it does not respond and get removed; 4) Thread B remove node Z from table_1 and get table_2; 5) Thread B put table_2; 6) Thread A insert a new node and get table_3; 4) Thread A put table_3; The problem is that final table_3 do have the removed node. At the moment, exclusive access solves this problem.
2013-12-28Add instance Alternative RoutingSam Truzjan
2013-12-28Simplify Routing monadSam Truzjan
2013-12-28Add routing table shapeSam Truzjan
2013-12-28Drop old node if it is not respondingSam Truzjan
2013-12-28Add logging to DHTSam Truzjan
2013-12-28Add pretty instances for NodeInfosSam Truzjan
2013-12-28Fix timestamp comparisonSam Truzjan
2013-12-28Add node sessionsSam Truzjan
2013-12-28Remove unused node list serializationSam Truzjan
2013-12-28Fix typoSam Truzjan
2013-12-27Update TODOSam Truzjan
2013-12-27Add naive session tokens implementationSam Truzjan
2013-12-27Add pending module for routing specSam Truzjan
2013-12-27Add implied_port field to DHT announce querySam Truzjan
2013-12-27Fix get_peers response encodingSam Truzjan
2013-12-26Test DHT RPC on a real nodeSam Truzjan
2013-12-26Fix node info list serializationSam Truzjan
2013-12-26Bump hspec dependencySam Truzjan
2013-12-26Add tests for NodeInfo moduleSam Truzjan
2013-12-26Fix typoSam Truzjan
2013-12-26Fix documentation markupSam Truzjan
2013-12-26Merge branch 'dev' of https://github.com/DanielG/bittorrentSam Truzjan
2013-12-26Test ping and find_node bencodingSam Truzjan
2013-12-26Add IsString instance to NodeInfosSam Truzjan
2013-12-25Add hspec submoduleDaniel Gröber
2013-12-25Bump krpc submoduleSam Truzjan
2013-12-25Add Serialize instance for IPDaniel Gröber
2013-12-25Update krpc submoduleDaniel Gröber
2013-12-25Update TODO itemsDaniel Gröber