Bug 4999 - clean up websocket request handler further
Summary: clean up websocket request handler further
Alias: None
Product: ThinLinc
Classification: Unclassified
Component: Web Access (show other bugs)
Target Milestone: 4.10.0
Assignee: Pierre Ossman
Keywords: prosaic
Depends on:
Reported: 2014-02-21 15:47 CET by Pierre Ossman
Modified: 2019-02-11 14:58 CET (History)
0 users

See Also:
Acceptance Criteria:


Description Pierre Ossman cendio 2014-02-21 15:47:45 CET
We cleaned up the WebSocketRequestHandler class to behave more like a normal RequestHandler. But it still has a lot of bells and whistles that makes it unnecessarily complex.

We should strip it down so that it provides base functionality, just like other RequestHandler stuff already in Python. Fancy extra features like more advanced logging and recording data could be added in a subclass if it is something upstream really wants. And on that note, it should be derived from BaseHTTPRequestHandler, not SimpleHTTPRequestHandler. Or perhaps a "mixin" design is needed given that the base HTTP request handler class might vary.
Comment 1 Pierre Ossman cendio 2019-01-30 11:07:04 CET
It has been gradually reduced over the years and finally reduced to a mixin in r33913 for bug 7187 and bug 7289.

Considering this fixed.
Comment 2 Peter Åstrand cendio 2019-02-11 14:58:57 CET
Code reviewed. No need to test anything.

Note You need to log in before you can comment on or make changes to this bug.