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

getHostName() may cause a delay when client connects #396

Open
sp20 opened this issue Nov 24, 2016 · 1 comment
Open

getHostName() may cause a delay when client connects #396

sp20 opened this issue Nov 24, 2016 · 1 comment
Milestone

Comments

@sp20
Copy link

sp20 commented Nov 24, 2016

getHostName() is called in the constructor of HTTPSession (NanoHTTPD.java release 2.3.1, line 652).
This method performs a reverse DNS lookup which may be very lengthy in case of bad DNS configuration in the network where our server lives.
It would be great to provide an option to disable such call because a client's host name is not needed in every server.

@LordFokas
Copy link
Member

This can be implemented as an extension to install as needed in v3.0+

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

No branches or pull requests

2 participants