From: Eugene Crosser Date: Tue, 31 May 2022 22:36:50 +0000 (+0200) Subject: wsgateway: reclassify http write hack as permanent X-Git-Tag: 0.98~4 X-Git-Url: http://www.average.org/gitweb/?p=loctrkd.git;a=commitdiff_plain;h=c09808cddcddadbe7af392337977707ac27355e9 wsgateway: reclassify http write hack as permanent --- diff --git a/gps303/wsgateway.py b/gps303/wsgateway.py index c0a4776..c344e88 100644 --- a/gps303/wsgateway.py +++ b/gps303/wsgateway.py @@ -152,7 +152,11 @@ class Client: e, ) self.ws_data = try_http(data, self.sock.fileno(), e) - self.write() # TODO this is a hack + # this `write` is a hack - writing _ought_ to be done at the + # stage when all other writes are performed. But I could not + # arrange it so in a logical way. Let it stay this way. The + # whole http server affair is a hack anyway. + self.write() log.debug("Sending HTTP response to %d", self.sock.fileno()) msgs = None else: