From: Victor Grishchenko Date: Wed, 19 May 2010 10:06:54 +0000 (+0200) Subject: minor X-Git-Url: http://p2p-next.cs.pub.ro/gitweb/?a=commitdiff_plain;h=5f0433f829d44fd37c478b88099876b897b78193;p=swift-upb.git minor --- diff --git a/TODO b/TODO index cbe6278..9e9a414 100644 --- a/TODO +++ b/TODO @@ -7,7 +7,9 @@ STATE MACHINE * set priorities on ranges * small-progress update problem (aka peer nap) guarantee size of updates < x% of data, on both ends -* SWIFT_MSGTYPE_RCVD SWIFT_MSGTYPE_SENT +* pex is affected by peer nap +* how will tracker aggregate pexes? +* SWIFT_MSGTYPE_RCVD * HAVE ALL / HAVE NONE * aggregate ACKS (schedule for +x ms) * channel close msg (hs 0) @@ -35,6 +37,7 @@ CACHING/FILES * move to 64-bit IO * Transfer(fd) constructor * think of sliding window(s) +* the ability to sniff file without downloading MANIFOLD * all-swarm performance stats @@ -69,4 +72,3 @@ OTHER * packing hashes into a single datagram (tracking 1000s) * partial channels / lightweight channels * socket array is misplaced -* the invalid-hash bug diff --git a/bins.cpp b/bins.cpp index 319a7cd..aa81a70 100644 --- a/bins.cpp +++ b/bins.cpp @@ -180,12 +180,8 @@ uint16_t binmap_t::alloc_cell () { bin64_t iterator::next (bool stop_undeep, bool stop_solid, uint8_t stop_layer) { - //assert( (!deep()) || (layer()==min_layer)); while (pos.is_right()) parent(); - //parent(); - //if (need_solid ? !solid() : deep()) - // right(); sibling(); while ( (!stop_undeep || deep()) && (!stop_solid || (deep() || !solid()) ) && diff --git a/doc/draft-ietf-ppsp-grishchenko-swift.nroff b/doc/draft-ietf-ppsp-grishchenko-swift.nroff index 1461f89..c4420ed 100644 --- a/doc/draft-ietf-ppsp-grishchenko-swift.nroff +++ b/doc/draft-ietf-ppsp-grishchenko-swift.nroff @@ -542,7 +542,7 @@ Peers running over TCP may not accept ACK messages, etc etc. 4.8. Directory lists .fi -Directory list files MUST start with magic bytes ".\n..\n\n". The rest of the file is a newline-separated list of hashes and file names for the content of the directory. An example: +Directory list files MUST start with magic bytes ".\n..\n". The rest of the file is a newline-separated list of hashes and file names for the content of the directory. An example: .nf \&.