#1029421 Websocketd strips adds extraneous newlines in other direction from client to server, and strips out newlines in the other direction #1029421
- Package:
- websocketd
- Source:
- websocketd
- Description:
- Turn any program that uses STDIN/STDOUT into a WebSocket server
- Submitter:
- Alain Knaff
- Date:
- 2023-01-22 16:03:19 UTC
- Severity:
- normal
In order to do some tests with web services, and eventually set up a tunnel for ssh, I used websocketd with a simple script. Here I noticed that the script's input and output are not faithfully received from/sent to the socket. Indeed, from client to server, extraneous newlines are added. Conversely, on data from server to client, newlines are stripped out. N.B., I *did* set both STDERR and STDOUT to autoflush. Hence, this cannot be used to tunnel arbitrary data via a web server. Thanks, Alain