public inbox for [email protected]  
help / color / mirror / Atom feed
From: Neel Patel <[email protected]>
To: Dave Page <[email protected]>
To: [email protected]
Cc: pgadmin-hackers <[email protected]>
Subject: Re: [pgAdmin4][runtime][patch]: RM#2398 - Proxy not bypassed for embedded server in runtime on Windows
Date: Wed, 24 May 2017 13:52:07 +0530
Message-ID: <CACCA4P1Q89NBadubBXmLYvBNDo3yRJH9JgDGa7omY=GscsOQbg@mail.gmail.com> (raw)
In-Reply-To: <CA+OCxoyLe1A1Aven5MvKY=-TRB7BfjKZH=+K_Cc4DLNN4W6d-A@mail.gmail.com>
References: <CACCA4P0KyPQj=Q4EieTvs1JH=LTkvjHOTEZytbu-CFB+_L5zbQ@mail.gmail.com>
	<CA+OCxoyLe1A1Aven5MvKY=-TRB7BfjKZH=+K_Cc4DLNN4W6d-A@mail.gmail.com>
List-Unsubscribe:  <mailto:[email protected]?body=unsub%20pgadmin-hackers>

--94eb2c0c0bcedd91ca055040cc6a
Content-Type: multipart/alternative; boundary="94eb2c0c0bcedd91c5055040cc68"

--94eb2c0c0bcedd91c5055040cc68
Content-Type: text/plain; charset="UTF-8"

Hi,

After debugging the issue in windows, we came to know that "random port"
generation logic in runtime is getting failed if we configured proxy server
in windows.

Below are the code where we are finding random free port and use with our
URL "localhost:<port>". Below code return "0" as port value so application
is not able to start and it hangs on splash screen. Here, if we configured
proxy server in windows then "bind" method always return false and gives
message "Operation not permitted" but when we disable proxy server then
below code gives valid random port number.

QTcpSocket socket;
socket.bind(0, QTcpSocket::ShareAddress);
port = socket.localPort();

Same happens with Linux OS - when user defined "http_proxy" environment
variable and run pgAdmin4 application then above code fails and gives "0"
as random port number and application hangs on splash screen.




view thread (5+ messages)  latest in thread

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected], [email protected]
  Subject: Re: [pgAdmin4][runtime][patch]: RM#2398 - Proxy not bypassed for embedded server in runtime on Windows
  In-Reply-To: <CACCA4P1Q89NBadubBXmLYvBNDo3yRJH9JgDGa7omY=GscsOQbg@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox