Closed cless closed 13 years ago
Nice :)
Just gave it a spin - works perfectly.
@chrisglass Thanks for verifying the code!
Thanks for doing this. I'm curious what the motivation for reordering is. Why not just have the 303 case return -2, add a case in the stringify on the chrome side, and have that be it?
edited this reply after thinking through my reasoning again
@moxie0, I choose to reorder the status codes because it would make calculating the consensus a lot easier. Before reordering all status codes seemed to be placed at random regardless of their meaning. The way it's ordered now all the status codes below 0 mean failure (connection fail, verification fail). 0-2 means the vote is ignored (relay, 303, connection failure) and lastly 3 means verification success. In hindsight maybe it was better if I used 0 for verification correct, < 0 for fail and > 0 for ignore. I can change that still if that makes more sense.
@cless Thanks, I think I agree that < 0 fail, 0 success, >0 ignore would make more sense.
Well I royally screwed that up, kindly ignore while I try to fix this. Sorry!
Edit: there we go, that should do it.
Verification mouseover status now correctly shows the status of a 303 reply as "Verification Inconclusive" instead of "Connectivity Failure".