Page 1 of 2
net::ERR_CONNECTION_REFUSED
Posted: Sun Mar 15, 2020 1:00 pm
by miro_mr
Hi,
I have a problem with connection to a local source. When using BriskBard browser everything works fine as you can see in wss.png attachment. But when I use TChromium in my application then I'll get "WebSocket connection to 'wss://127.0.0.1:49593/getUrl/49f780de-c014-b026-5bcf-23341deb9430' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED", source:
https://www.slovensko.sk/static/zep/dbr ... mon.min.js (259)
Do you have any ideas what is probably blocking me?
Thanks
Re: net::ERR_CONNECTION_REFUSED
Posted: Tue Mar 17, 2020 8:06 am
by salvadordf
Hi,
Perhaps it's an issue in the latest CEF binaries. BriskBard still uses CEF 79 while CEF4Delphi uses CEF 80.
Please, try the official CEF sample application with that service :
http://opensource.spotify.com/cefbuilds ... nt.tar.bz2
Re: net::ERR_CONNECTION_REFUSED
Posted: Tue Mar 17, 2020 1:11 pm
by miro_mr
Hi
see please attached log files from cefclient.exe (cef_binary_80.0.8%2Bgf96cd1d%2Bchromium-80.0.3987.132_windows32_client.tar.bz2)
Thank you
Re: net::ERR_CONNECTION_REFUSED
Posted: Tue Mar 17, 2020 1:16 pm
by miro_mr
Hi,
see please attached log files. (cefclient.exe 80.0.3987.132).
Thank you
logfiles.zip
Re: net::ERR_CONNECTION_REFUSED
Posted: Tue Mar 17, 2020 1:19 pm
by miro_mr
Hi
see please log files from cefclient.exe(-80.0.3987.132_windows32_client)
Thank you
logfiles.zip
Re: net::ERR_CONNECTION_REFUSED
Posted: Tue Mar 17, 2020 1:35 pm
by salvadordf
First of all I must confess that I have a very limited experience with websockets so I'm not the best person to give advice about this issue.
It seems that the official CEF sample application is also having the same issue. This means that it could be caused by an issue in Chromium or CEF, or a change in the way WSS connections should be made in the browser.
I would try to replicate this issue in the latest Chrome browser. If you still see the issue I would search for "
WebSocket connection failed ERR_CONNECTION_REFUSED" in google and try the suggested solutions. Perhaps this works :
https://github.com/GeniusesOfSymfony/We ... issues/251
If Chrome works correctly then it could be a CEF issue and I would ask for help in the CEF forum :
https://magpcss.org/ceforum/
Sorry, but I'm afraid I can't help you.
Re: net::ERR_CONNECTION_REFUSED
Posted: Tue Mar 17, 2020 2:52 pm
by miro_mr
Ok, but it is very interesting it works perfectly in Briskbard browser.
(I noticed a libeay32.dll, which is included in briskbard browser installation. Can this lib somehow affect this behavior? )
Re: net::ERR_CONNECTION_REFUSED
Posted: Tue Mar 17, 2020 3:16 pm
by salvadordf
That's very unlikely. CEF has its own network stack and as far as I know it doesn't use OpenSSL.
BriskBard uses Indy components which use the OpenSSL library for other tabs : FTP, newsgroups reader, IRC, telnet, RSS reader, etc.
Re: net::ERR_CONNECTION_REFUSED
Posted: Tue Mar 17, 2020 3:48 pm
by miro_mr
BriskBard works beautifully.
Watch videos at:
http://admis.sk/briskbard/briskbard.zip
Re: net::ERR_CONNECTION_REFUSED
Posted: Tue Mar 17, 2020 4:41 pm
by salvadordf
I'm glad you like it
I don't understand the language of the popup window. Is it related to some certificate?
Perhaps you also need to implement TChromium.OnSelectClientCertificate in your browser.