influxdata / influxdata/influxdb-java
Support for HTTP write with Proxy.
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 1.2k
- Forks
- 469
- PR merge metrics
- No merged PRs in 30d
Description
Currently the code throws exception
org.influxdb.InfluxDBIOException: java.net.UnknownHostException
if the client sits behind the proxy and can not resolve the hostname.
Hostname InetAddress is only used for UDP writes so IMHO, the constructor call in InfluxDBImpl
this.hostAddress = parseHostAddress(url);
can be moved to initialDatagramSocket() method.
Which at least enables the HTTP traffic from behind firewall.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in InfluxDBImpl, reviewing the constructor call to parseHostAddress(url) and the initialDatagramSocket() entry point. Confirm how hostname resolution affects clients behind a proxy, then verify that HTTP writes no longer fail with UnknownHostException when the hostname cannot be resolved, while UDP initialization still has the needed address.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- networking
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 55/100