Open richarddmorey opened 1 year ago
@richarddmorey the port 6313 is for the QAP Rserve protocol which has nothing to do with HTTP/S. Since it's an entirely different binary protocol the sizes you are sending with a http client make no sense. I would recommend setting qap=FALSE
in the app to not expose the QAP endpoint.
That said, It's unclear why it is used in the example since it has nothing to do with the webserve function - @dselivanov I would argue that QAP should be disabled by default (unless I'm missing some additional use here...).
I've confirmed that if I set qap=FALSE
, connections to that port are then refused.
Describe the bug
When I run the
examples/ssl/app.R
, ieget-ssl-cert.sh
Rscript app.R
I can access
https://localhost:8443/hello
as expected, and get the output "Hello, World!"I noticed that the example also seems to use port 6313, so I tried "http://localhost:6313/hello". I get in the RestRserve log:
and the browser appears to be loading, but never stops.
This occurs with any url that points to port 6313, eg
http://localhost:6313/hello2
although it isn't routed anywhere yields:and the browser appears to be loading but never stops.
I'm assuming that awaiting several quintillion bytes is a mistake.
To Reproduce
See above. It's just the included example.
Expected behavior
I expected non-HTTPS connections to be rejected, given that in the example they appear to be disabled.
Environment information
Additional context
Question: When looking at the example, I wondered why the argument
port
is defined, whilehttp_port = -1
. If you only intend to use HTTPS, do you need to define bothport
andhttps.port
?