Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
G
getty
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wei.xuan
getty
Commits
81c7e8fe
Commit
81c7e8fe
authored
Sep 10, 2016
by
alexstocks
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bugs
parent
fcc07cef
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
13 deletions
+13
-13
config.go
echo/client/app/config.go
+3
-3
main.go
echo/client/app/main.go
+1
-1
config.toml
echo/client/profiles/test/config.toml
+3
-3
config.go
echo/server/app/config.go
+3
-3
config.toml
echo/server/profiles/test/config.toml
+3
-3
No files found.
echo/client/app/config.go
View file @
81c7e8fe
...
...
@@ -17,7 +17,7 @@ import (
)
import
(
"github.com/AlexStocks/gocolor"
//
"github.com/AlexStocks/gocolor"
log
"github.com/AlexStocks/log4go"
config
"github.com/koding/multiconfig"
)
...
...
@@ -136,8 +136,7 @@ func initConf() {
panic
(
fmt
.
Sprintf
(
"time.ParseDuration(WaitTimeout{%#v}) = error{%v}"
,
conf
.
GettySessionParam
.
WaitTimeout
,
err
))
return
}
gocolor
.
Info
(
"config{%#v}
\n
"
,
conf
)
// gocolor.Info("config{%#v}\n", conf)
// log
confFile
=
os
.
Getenv
(
APP_LOG_CONF_FILE
)
...
...
@@ -150,6 +149,7 @@ func initConf() {
return
}
log
.
LoadConfiguration
(
confFile
)
log
.
Info
(
"config{%#v}"
,
conf
)
return
}
echo/client/app/main.go
View file @
81c7e8fe
...
...
@@ -156,7 +156,7 @@ func test() {
if
client
.
isAvailable
()
{
break
}
time
.
Sleep
(
1e
9
)
time
.
Sleep
(
1e
6
)
}
var
(
...
...
echo/client/profiles/test/config.toml
View file @
81c7e8fe
...
...
@@ -38,7 +38,7 @@ FailFastTimeout = "3s"
TcpWBufSize
=
65536
PkgRQSize
=
512
PkgWQSize
=
256
TcpReadTimeout
=
1e9
TcpWriteTimeout
=
5e9
WaitTimeout
=
1e9
//
1
s
TcpReadTimeout
=
"1s"
TcpWriteTimeout
=
"5s"
WaitTimeout
=
"1s"
SessionName
=
"echo-client"
echo/server/app/config.go
View file @
81c7e8fe
...
...
@@ -17,7 +17,7 @@ import (
)
import
(
"github.com/AlexStocks/gocolor"
//
"github.com/AlexStocks/gocolor"
log
"github.com/AlexStocks/log4go"
config
"github.com/koding/multiconfig"
)
...
...
@@ -112,8 +112,7 @@ func initConf() {
panic
(
fmt
.
Sprintf
(
"time.ParseDuration(WaitTimeout{%#v}) = error{%v}"
,
conf
.
GettySessionParam
.
WaitTimeout
,
err
))
return
}
gocolor
.
Info
(
"config{%#v}
\n
"
,
conf
)
// gocolor.Info("config{%#v}\n", conf)
// log
confFile
=
os
.
Getenv
(
APP_LOG_CONF_FILE
)
...
...
@@ -126,6 +125,7 @@ func initConf() {
return
}
log
.
LoadConfiguration
(
confFile
)
log
.
Info
(
"config{%#v}"
,
conf
)
return
}
echo/server/profiles/test/config.toml
View file @
81c7e8fe
...
...
@@ -22,7 +22,7 @@ FailFastTimeout = "3s"
TcpWBufSize
=
524288
PkgRQSize
=
1024
PkgWQSize
=
512
TcpReadTimeout
=
1e9
TcpWriteTimeout
=
5e9
WaitTimeout
=
1e9
//
1
s
TcpReadTimeout
=
"1s"
TcpWriteTimeout
=
"5s"
WaitTimeout
=
"1s"
SessionName
=
"echo-server"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment