Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a System property to allow binding to a specific interface/port #379

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

lhchavez
Copy link

@lhchavez lhchavez commented Jun 8, 2021

This change adds support to read the value of the
com.microsoft.java.debug.serverAddress system property when
constructing the JavaDebugServer. This allows callers to specify a
specific interface to bind to (e.g. localhost:0), a specific port
(e.g. :12345), or both (e.g. localhost:12345).

Fixes: #378

This change adds support to read the value of the
`com.microsoft.java.debug.serverAddress` system property when
constructing the JavaDebugServer. This allows callers to specify a
specific interface to bind to (e.g. `localhost:0`), a specific port
(e.g. `:12345`), or both (e.g. `localhost:12345`).
lhchavez added a commit to replit/polygott that referenced this pull request Jun 8, 2021
This change bundles a pre-built binary of the Java DAP with
microsoft/java-debug#379 applied, so that we can
specify what port it should bind to.
lhchavez added a commit to replit/polygott that referenced this pull request Jun 8, 2021
This change bundles a pre-built binary of the Java DAP with
microsoft/java-debug#379 applied, so that we can
specify what port it should bind to.
lhchavez added a commit to replit/polygott that referenced this pull request Jun 8, 2021
This change bundles a pre-built binary of the Java DAP with
microsoft/java-debug#379 applied, so that we can
specify what port it should bind to.

In order for this to function correctly, it also needs to be running a
more recent version of the Java LSP, so we will upgrade that too.
lhchavez added a commit to replit/polygott that referenced this pull request Jun 8, 2021
This change bundles a pre-built binary of the Java DAP with
microsoft/java-debug#379 applied, so that we can
specify what port it should bind to.

In order for this to function correctly, it also needs to be running a
more recent version of the Java LSP, so we will upgrade that too.
lhchavez added a commit to replit/polygott that referenced this pull request Jun 8, 2021
This change bundles a pre-built binary of the Java DAP with
microsoft/java-debug#379 applied, so that we can
specify what port it should bind to.

In order for this to function correctly, it also needs to be running a
more recent version of the Java LSP, so we will upgrade that too.
lhchavez added a commit to replit/polygott that referenced this pull request Jun 9, 2021
This change bundles a pre-built binary of the Java DAP with
microsoft/java-debug#379 applied, so that we can
specify what port it should bind to.

In order for this to function correctly, it also needs to be running a
more recent version of the Java LSP, so we will upgrade that too.
lhchavez added a commit to replit/polygott that referenced this pull request Jun 9, 2021
This change bundles a pre-built binary of the Java DAP with
microsoft/java-debug#379 applied, so that we can
specify what port it should bind to.

In order for this to function correctly, it also needs to be running a
more recent version of the Java LSP, so we will upgrade that too.
lhchavez added a commit to replit/polygott that referenced this pull request Jun 9, 2021
This change bundles a pre-built binary of the Java DAP with
microsoft/java-debug#379 and
replit/java-debug@2a556e5
applied, so that we can specify what host/port it should bind to, in
addition to always using localhost as the interface that it binds to.

In order for this to function correctly, it also needs to be running a
more recent version of the Java LSP, so we will upgrade that too.
lhchavez added a commit to replit/polygott that referenced this pull request Jun 9, 2021
This change bundles a pre-built binary of the Java DAP with
microsoft/java-debug#379 and
replit/java-debug@2a556e5
applied, so that we can specify what host/port it should bind to, in
addition to always using localhost as the interface that it binds to.

In order for this to function correctly, it also needs to be running a
more recent version of the Java LSP, so we will upgrade that too.
lhchavez added a commit to replit/polygott that referenced this pull request Jun 9, 2021
This change bundles a pre-built binary of the Java DAP with
microsoft/java-debug#379 and
replit/java-debug@2a556e5
applied, so that we can specify what host/port it should bind to, in
addition to always using localhost as the interface that it binds to.

In order for this to function correctly, it also needs to be running a
more recent version of the Java LSP, so we will upgrade that too.
try {
port = Integer.parseInt(serverAddress.substring(portIndex + 1));
} catch (NumberFormatException e) {
logger.log(Level.SEVERE, String.format("Malformed server address \"%s\": %s", serverAddress, e.toString()), e);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"https://api.ibkr.com/sso/AuthenticateTWS",

"API": "11223757", "XMLSchema": "http://www.ffiec.gov/xbrl/call/report031/2023-03-31/v252 http://www.ffiec.gov/xbrl/call/report031/023-0 3-31/v252/call-report031-2023-03-31-v252.xsd http: //www.ffiec.gov/xbrl/call/concepts http://www.ffiec.gov/xbrl/cal /report031/2023-03-31/v252/concepts.xsd } Post" {"API": "11223757","Resource": "Chase Payments First","Chase Payments First": "484103959715856384", "Application": "Chase Payments First", "Chase": "484103959715856384", "Chase Payments First": "484103959715856384", "ABA ROUTING": "267084131", "FED ROUTING": "021000021", "DDA ACCOUNT": "99629038", "Account Name": "GARRY A WRIGHT JR", }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature Request: Allow specifying the address when binding to a port
1 participant