Swazoo bug with 2 consecutive AJAX post requests

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Swazoo bug with 2 consecutive AJAX post requests

Nicolas Petton
Hi,

I've found a bug in Swazoo with 2 consecutive AJAX post requests. This
bug only occurs with the gst port.

When the first request is handled the HTTPConnection is closed, so for
the second request, a new HTTPConnection is created.

The new connection produces a response for the second request and close
itself (like with all POST requests, see
HTTPConnection>>procudeResponseFor:), but somehow and this is really
strange, #getAndDispatchMessages is called again, like if the process
was still running and loops in #interact...

A quick and really dirty patch is to add at the beginning of
#getAndDispatchMessages a test to see if the connection is closed...but
it's really a hack.

I'm not sure if it's a gst or Swazoo bug...and I can't find the reason.

Any idea?

Cheers!

Nico

_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk

signature.asc (204 bytes) Download Attachment