Skip to content

Commit

Permalink
#258 binding listeners after gateway initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
michal-harish committed Nov 23, 2018
1 parent 6f3def9 commit 484c9a4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ trait GatewayHttp extends Gateway {

val interfaces: List[HttpInterface] = listenerConfigs.map(new HttpInterface(_)).toList

private val listeners: List[InetSocketAddress] = interfaces.map(_.bind(self))

private val onlineCounter = metrics.counter("http.gateway." + interfaces.head.port)

private lazy val listeners: List[InetSocketAddress] = interfaces.map(_.bind(self))

private implicit val executor = scala.concurrent.ExecutionContext.Implicits.global

abstract override def preStart(): Unit = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
{
"id": "2043a112-0265-939e-2f48-2246c33db33f",
"headers": "",
"url": "http://localhost:8881/store/1",
"url": "http://localhost:18881/store/1",
"pathVariables": {},
"preRequestScript": null,
"method": "GET",
Expand All @@ -35,7 +35,7 @@
{
"id": "53b821a4-74d3-684c-1b3c-d86910b295b8",
"headers": "",
"url": "http://localhost:8881/ping",
"url": "http://localhost:18881/ping",
"pathVariables": {},
"preRequestScript": null,
"method": "GET",
Expand All @@ -55,7 +55,7 @@
{
"id": "bb39b234-6e07-d78d-053e-bc665c24cc89",
"headers": "",
"url": "http://localhost:8881/store/1?value=abc",
"url": "http://localhost:18881/store/1?value=abc",
"pathVariables": {},
"preRequestScript": null,
"method": "PUT",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ affinity {
listeners = [
{
host = "0.0.0.0"
port = 8881
port = 18881
prefix = "/secure"
tls.keystore {
password = "123456"
Expand All @@ -45,7 +45,7 @@ affinity {
},
{
host = "0.0.0.0"
port = 8882
port = 18882
prefix = "/unsafe"
}
]
Expand Down

0 comments on commit 484c9a4

Please sign in to comment.