102-drop-opt.txt 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. Filename: 102-drop-opt.txt
  2. Title: Dropping "opt" from the directory format
  3. Version: $Revision$
  4. Last-Modified: $Date$
  5. Author: Nick Mathewson
  6. Created:
  7. The "opt" keyword in Tor's directory formats was originally intended to
  8. mean, "it is okay to ignore this entry if you don't understand it"; the
  9. default behavior has been "discard a routerdesc if it contains entries you
  10. don't recognize."
  11. But so far, every new flag we have added has been marked 'opt'. It would
  12. probably make sense to change the default behavior to "ignore unrecognized
  13. fields", and add the statement that clients SHOULD ignore fields they don't
  14. recognize. As a meta-principle, we should say that clients and servers
  15. MUST NOT have to understand new fields in order to use directory documents
  16. correctly.
  17. Of course, this will make it impossible to say, "The format has changed a
  18. lot; discard this quietly if you don't understand it." We could do that by
  19. adding a version field.
  20. Status:
  21. * We stopped requiring it as of 0.1.2.5-alpha. We'll stop generating it
  22. once earlier formats are obsolete.