twisted.web - how do i stop reqest.finish() (twisted .web server)from closing the http connection -


i have written chat server writes message line on browser of 1 client other client. problem if use request.finish() output shown connection closed .if dont use request.finish () browser or program buffers output , displaying output after 20 or request have been send.however connection remains open.

i think best approach reconnecting client after receiving message , closing connection.


Comments

Popular posts from this blog

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -