kanaka/websockify — Issue #20: Can we wrap a forking server
Author: gurjeet
Created: 2011-11-30 03:29:50+00:00
State: open

AIUI from the `Wrap a Program` section in README, Websockify can help you launch a TCP server and rebind its port so that incoming Websockets-based communication is parsed and forwarded to the server on the proper (rebinded) port.

My question is, can this mechanism be used to wrap a server that forks its children which in turn communicate with the client on a different port. Specifically, I am interested in websockifying a Postgres server, which typically listens on port 5432 and for a new incoming connection it forks a child which serves all future request from that client.

(If it helps, Oracle RDBMS and many other servers, RDBMS or not, also use similar method.)

If this is not currently supported, would it be possible to support such a scheme in future?

Originally asked at: http://stackoverflow.com/questions/8271597/websockify-to-wrap-a-forking-server