From 3b2c0957a125adc737c88863f0eda645601bb8ee Mon Sep 17 00:00:00 2001 From: geek Date: Mon, 9 Apr 2018 22:08:22 +0900 Subject: [PATCH] config test --- config.json | 5 ++++- glide.yaml | 9 +++++++-- server/server.go | 6 +++--- 3 files changed, 14 insertions(+), 6 deletions(-) diff --git a/config.json b/config.json index 22c0200..489f791 100644 --- a/config.json +++ b/config.json @@ -2,7 +2,10 @@ "serverHandler": { "name": "Gateway WebApp", "network": "tcp4", - "addr": "192.168.1.103:19090", + "address": "192.168.1.103:19090", + "concurrency": 262144, + "keepAlive": 60, + "handshakeTimeout": 60, "maxMessageSize": 8192, "readBufferSize": 1024, "writeBufferSize": 1024, diff --git a/glide.yaml b/glide.yaml index d2395b0..692f36d 100644 --- a/glide.yaml +++ b/glide.yaml @@ -1,6 +1,11 @@ package: git.loafle.net/overflow/member_gateway_rpc import: -- package: git.loafle.net/commons/server-go - package: git.loafle.net/commons/configuration-go -- package: git.loafle.net/overflow/central_api +- package: git.loafle.net/commons/logging-go +- package: git.loafle.net/commons/server-go + subpackages: + - socket/web - package: git.loafle.net/overflow/gateway_rpc + subpackages: + - server + - servlet diff --git a/server/server.go b/server/server.go index 6b10fbc..41109b1 100644 --- a/server/server.go +++ b/server/server.go @@ -1,16 +1,16 @@ package server import ( - csgw "git.loafle.net/commons/server-go/socket/web" + "git.loafle.net/commons/server-go/socket/web" "git.loafle.net/overflow/member_gateway_rpc/servlet" ) -func New() *csgw.Server { +func New() *web.Server { rs := &servlet.RPCServlets{} sh := &ServerHandlers{} sh.RegisterServlet("/webapp", rs) - s := &csgw.Server{ + s := &web.Server{ ServerHandler: sh, }