[Psi-Devel] account registration @ jabber.org

textshell-I1QKlO at neutronstar.dyndns.org textshell-I1QKlO at neutronstar.dyndns.org
Sat Dec 1 14:42:45 PST 2007


On Wed, Nov 28, 2007 at 07:52:15AM +0000, Kevin Smith wrote:
> On 28 Nov 2007, at 03:01, Michail Pishchagin wrote:
> > Couldn't we simply request the registration form, then terminate a
> > connection and establish a new connection when all the parameters are
> > ready?
> 
> Not if we want it to work reliably; the server config may well have  
> changed since we requested the form (this is another of these examples  
> that keeps popping up of where we need atomicity). The solution is  
> really just leaving the socket open for a reasonable length of time.  
> It doesn't have to be forever, just long enough to reasonably fill out  
> the form.
> 

I think the right thing to do is something inbetween. If the connection
times out while the user is still filling the form, psi should add a small
red text to the form but keep going. If the user submits psi will reconnect
and send the data to the server. Yes, this is a bit "racy" but in the
normal case it works...
I bet server admins are not changing their setting all the time to annoy
users ;)
But it's not really any more racy than any normal http form processing.

 - Martin


More information about the Psi-Devel mailing list