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

ktor-server-cio ignores deployment.host #1387

Closed
meoyawn opened this issue Oct 8, 2019 · 3 comments
Closed

ktor-server-cio ignores deployment.host #1387

meoyawn opened this issue Oct 8, 2019 · 3 comments
Assignees
Labels

Comments

@meoyawn
Copy link
Contributor

meoyawn commented Oct 8, 2019

Ktor Version and Engine Used (client or server and name)
1.2.5, server, ktor-server-cio

Describe the bug

my application.conf:

ktor {
    application {
        modules = [ adeln.MainKt.module ]
    }
    deployment {
        host = "127.0.0.1"
        port = 8080
    }
}

When I run netstat -plnt:

With ktor-server-cio deployment.host is ignored and my server is accessible externally:

tcp6       0      0 :::8080                 :::*                    LISTEN      24413/java          

To Reproduce

  1. Use my application conf
  2. Launch the server using ktor-server-cio
  3. Run netstat -plnt and see that deployment.host is ignored

Expected behavior
With ktor-server-netty deployment.host is applied correctly:

tcp6       0      0 127.0.0.1:8080          :::*                    LISTEN      24978/java          
@meoyawn meoyawn added the bug label Oct 8, 2019
@cy6erGn0m cy6erGn0m self-assigned this Oct 8, 2019
@meoyawn
Copy link
Contributor Author

meoyawn commented Oct 8, 2019

Running openjdk-11 on Ubuntu 18.04

@oleg-larshin
Copy link

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.

@Stexxe
Copy link
Contributor

Stexxe commented Jun 17, 2021

Can't reproduce with Ktor 1.6.0.

@Stexxe Stexxe closed this as completed Jun 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants