// Timeout in milliseconds for HTTP request connections
// defaults to 120 seconds
//httpRequestTimeout: 120000,
--To post to this group, send email to node...@googlegroups.com. To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/e60bb72b-7e4e-4aab-a0ec-ee1e2c59667b%40googlegroups.com.
http://nodered.org
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+unsubscribe@googlegroups.com.
In that case it is not for a outbound request. The request was inboundColin
On 25 Jan 2018 9:58 a.m., "NicolasC" <nic.cha...@gmail.com> wrote:
That's exactly right.
Le jeudi 25 janvier 2018 09:35:06 UTC+1, Colin Law a écrit :On 25 January 2018 at 06:45, NicolasC <nic.cha...@gmail.com> wrote:Hi,
Thank you for your quick reply.I indeed checked the settings.js file and found no difference.
I wonder if the quoted parameter is not for outbound http request.Your original email appeared to say that requests were from the devices to node red running on the VM, so would be inbound to the VM.Colin
--
http://nodered.org
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+u...@googlegroups.com.
Sorry if I was not clear.Yes, request is inbound to Node-red server.I use basic http request, that is served by http input, http response output.I can see that the the connection is closed by the server.
Using wireshark, I can see a FIN flag put in a TCP packet, 5 seconds after the http response.
app.use(settings.httpNodeRoot,RED.httpNode);
I see in this thread that a timeout 'could' be set in this location easily. But since we don't specify anything here, the default ExpressJs timeout will be used (see below).
RED.httpNode.get(this.url,cookieParser(),httpMiddleware,corsHandler,metricsHandler,this.callback,this.errorHandler);
Remark : The RED.httpNode is the in fact the link to ExpressJs that we have setup in red.js.
You can see in the Console window (of the Chrome debugger) that the default timeout of the Http Response is 120000. At line 196 I have added an extra line to set the timeout of the response object, but that is not available normally in Node-Red. You can see in the official documentation of NodeJs that you can set a timeout both on the response and the request.