[tor-commits] [torspec/master] Spec changes for proposal 181 (client-side optimistic data)

nickm at torproject.org nickm at torproject.org
Thu Jul 21 13:49:56 UTC 2011


commit 4212db3cb902a368199d96b3483f4ce15ce4cfed
Author: Nick Mathewson <nickm at torproject.org>
Date:   Wed Jul 20 11:08:09 2011 -0400

    Spec changes for proposal 181 (client-side optimistic data)
---
 dir-spec.txt                             |    5 +++++
 proposals/000-index.txt                  |    4 ++--
 proposals/181-optimistic-data-client.txt |    3 ++-
 socks-extensions.txt                     |   13 +++++++++++++
 4 files changed, 22 insertions(+), 3 deletions(-)

diff --git a/dir-spec.txt b/dir-spec.txt
index a4dd14f..9a22323 100644
--- a/dir-spec.txt
+++ b/dir-spec.txt
@@ -1207,6 +1207,11 @@
         parameters governing behavior" in path-spec.txt for a series of
         circuit build time related consensus params.
 
+        "UseOptimisticData" -- If set to zero, clients by default
+        shouldn't try to send optimistic data to servers until they have
+        received a RELAY_CONNECTED cell.
+        Min: 0, Max: 1
+
    The authority section of a vote contains the following items, followed
    in turn by the authority's current key certificate:
 
diff --git a/proposals/000-index.txt b/proposals/000-index.txt
index bd952ad..97248b8 100644
--- a/proposals/000-index.txt
+++ b/proposals/000-index.txt
@@ -101,7 +101,7 @@ Proposals by number:
 178  Require majority of authorities to vote for consensus parameters [OPEN]
 179  TLS certificate and parameter normalization [DRAFT]
 180  Pluggable transports for circumvention [OPEN]
-181  Optimistic Data for Tor: Client Side [OPEN]
+181  Optimistic Data for Tor: Client Side [CLOSED]
 182  Credit Bucket [DRAFT]
 
 
@@ -133,7 +133,6 @@ Proposals by status:
    177  Abstaining from votes on individual flags [for 0.2.3.x]
    178  Require majority of authorities to vote for consensus parameters [for 0.2.3.x]
    180  Pluggable transports for circumvention [for 0.2.3.x]
-   181  Optimistic Data for Tor: Client Side
  ACCEPTED:
    110  Avoiding infinite length circuits [for 0.2.3.x] [in 0.2.1.3-alpha]
    117  IPv6 exits [for 0.2.3.x]
@@ -186,6 +185,7 @@ Proposals by status:
    167  Vote on network parameters in consensus [in 0.2.2]
    171  Separate streams across circuits by connection metadata [in 0.2.3.3-alpha]
    174  Optimistic Data for Tor: Server Side [in 0.2.3.1-alpha]
+   181  Optimistic Data for Tor: Client Side [in 0.2.3.3-alpha]
  SUPERSEDED:
    112  Bring Back Pathlen Coin Weight
    113  Simplifying directory authority administration
diff --git a/proposals/181-optimistic-data-client.txt b/proposals/181-optimistic-data-client.txt
index 733b8a1..6d0a929 100644
--- a/proposals/181-optimistic-data-client.txt
+++ b/proposals/181-optimistic-data-client.txt
@@ -2,7 +2,8 @@ Filename: 181-optimistic-data-client.txt
 Title: Optimistic Data for Tor: Client Side
 Author: Ian Goldberg
 Created: 2-Jun-2011
-Status: Open
+Status: Closed
+Implemented-In: 0.2.3.3-alpha
 
 Overview:
 
diff --git a/socks-extensions.txt b/socks-extensions.txt
index f587d9c..b9f070a 100644
--- a/socks-extensions.txt
+++ b/socks-extensions.txt
@@ -75,6 +75,19 @@ Tor's extensions to the SOCKS protocol
   misconfigured.  This is helpful for the many users who mistakenly try to
   use Tor as an HTTP proxy instead of a SOCKS proxy.
 
+5. Optimistic data
+
+  Tor allows SOCKS clients to send connection data before Tor has sent a
+  SOCKS response.  When using an exit node that supports "optimistic data",
+  Tor will send such data to the server without waiting to see whether the
+  connection attempt succeeds.  This behavior can save a single round-trip
+  time when starting connections with a protocol where the client speaks
+  first (like HTTP).  Clients that do this must be ready to hear that
+  their connection has succeeded or failed _after_ they have sent the
+  data.
+
+
+
 References:
  [1] http://archive.socks.permeo.com/protocol/socks4.protocol
  [2] http://archive.socks.permeo.com/protocol/socks4a.protocol



More information about the tor-commits mailing list