Question

I'm trying to get a simple websocket proxy to work with xinetd.

The proxy is here : https://github.com/kumina/wsproxy (basic proxy for vnc)

Here's my xinetd/wsproxy config:

service wsproxy
{

    type        = UNLISTED
    socket_type = stream
    protocol    = tcp
    user        = root
    wait        = no
    port        = 8080
    server      = /usr/sbin/wsproxy
    server_args = 5000 9999 
    disable     = no
    log_type    = SYSLOG daemon info
    flags       = NOLIBWRAP
}

Also tried various changes like 'wait=yes' and 'wait=no' still the same results

i get a hundred entries like this one in syslog :

ubuntu xinetd[3707]: warning: can't get client address:...
...Transport endpoint is not connected

and finally :

xinetd[8283]: Deactivating service wsproxy due to excessive incoming connections.        

xinetd is running and in netstat as well.

Pulling my hairs out, can't find why it doesn't run.

(running ubuntu 11.04 x64)

Any ideas ?

Was it helpful?

Solution

Are you sure the vncserver in the backend is up and running? Even if wsproxy itself is running (check with telnet localhost 8080), if the vncserver isn't running, you might be running into this problem.

Checked with Debian Squeeze (i386) and Scientific Linux (x86_64) that your xinetd-config is correct. Works like charm.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top