[erlang-questions] Network connections fail when starting rebar app using "console" parameter
Whealy, Chris
chris.whealy@REDACTED
Wed Apr 11 18:29:08 CEST 2018
Hi Roger
My Cowboy app has a dependency on iBrowse - which has been working fine up until trying to start the app using “console”.
ibrowse:start(),
ibrowse:set_dest("download.geonames.org<http://download.geonames.org>", 80, [{max_sessions, 10}, {max_pipeline_size, 25}]),
Then I spawn another process to fetch some files from genomes.org<http://genomes.org> and wait for the results. The spawned process is just a wrapper around ibrowse:send_req(Url, [{"If-None-Match", Etag}], get) that fires off an HTTP GET request to Url for a given Etag.
This all works fine when using the “start" parameter, but fails when using “console”…
Regards
Chris Whealy
SAP Cloud Platform | Strategy & Product Management | Team
SAP UK Ltd, Clockhouse Place, Bedfont Rd, Feltham, Middx, TW14 8HA, England
M +44 (0)7808 575377
Find out more on the Strategy & Product Management Wiki page<https://wiki.wdf.sap.corp/wiki/pages/viewpage.action?pageId=1865737441> (SAP internal)
Follow our latest activities in SAP CP User Community Jam Group<https://jam4.sapjam.com/groups/about_page/eopqUq5S182gY7JFrbdwis>
Please consider the impact on the environment before printing this e-mail.
Twitter: @LogaRhythm
"The voice of ignorance speaks loud and long,
but the words of the wise are quiet and few"
Ancient Proverb
On 11 Apr 2018, at 17:07, Roger Lipscombe <roger@REDACTED<mailto:roger@REDACTED>> wrote:
On 11 April 2018 at 15:44, Whealy, Chris <chris.whealy@REDACTED<mailto:chris.whealy@REDACTED>> wrote:
Hi All
I have a Cowboy app that at startup time, downloads various files from another web server. I’m using rebar to create a release, and this all works fine when I start the app using the “start” parameter
$ _build/default/rel/geo_server/bin/geo_server start
But all the downloads fail when I use the “console” parameter
$ _build/default/rel/geo_server/bin/geo_server console
No other network conditions have changed, but now all the HTTP connections fail with {conn_failed,{error,ehostdown}} which clearly is not the case...
Are extra parameters needed when starting the app using “console”?
Not usually. What are you using to download the files from the other web server?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20180411/c62e601b/attachment.htm>
More information about the erlang-questions
mailing list