Commit c7320b82 authored by AlexStocks's avatar AlexStocks

test wss

parent 7da3d842
......@@ -131,12 +131,14 @@ func initSignal() {
// log.Warn("app exit now by force...")
// os.Exit(1)
log.Exit("app exit now by force...")
log.Close()
})
// 要么survialTimeout时间内执行完毕下面的逻辑然后程序退出,要么执行上面的超时函数程序强行退出
uninitClient()
// fmt.Println("app exit now...")
log.Exit("app exit now...")
log.Close()
return
}
}
......
......@@ -167,12 +167,14 @@ func initSignal() {
// log.Warn("app exit now by force...")
// os.Exit(1)
log.Exit("app exit now by force...")
log.Close()
})
// 要么survialTimeout时间内执行完毕下面的逻辑然后程序退出,要么执行上面的超时函数程序强行退出
uninitServer()
// fmt.Println("app exit now...")
log.Exit("app exit now...")
log.Close()
return
}
}
......
......@@ -68,7 +68,7 @@ func (this *EchoClient) selectSession() getty.Session {
defer this.lock.RUnlock()
count := len(this.sessions)
if count == 0 {
log.Info("client session array is nil...")
log.Debug("client session array is nil...")
return nil
}
......
......@@ -56,11 +56,17 @@ type (
LocalHost string `default:"127.0.0.1"`
// server
WSSEnable bool `default:"False"`
ServerHost string `default:"127.0.0.1"`
ServerPort int `default:"10000"`
ServerPath string `default:"/echo"`
ProfilePort int `default:"10086"`
// cert
CertFile string
KeyFile string
CACert string
// session pool
ConnectionNum int `default:"16"`
ConnectInterval string `default:"5s"`
......
......@@ -105,11 +105,23 @@ func newSession(session getty.Session) error {
}
func initClient() {
client.gettyClient = getty.NewClient(
(int)(conf.ConnectionNum),
conf.connectInterval,
gxnet.WSHostAddress(conf.ServerHost, conf.ServerPort, conf.ServerPath),
)
if conf.WSSEnable {
client.gettyClient = getty.NewWSSClient(
(int)(conf.ConnectionNum),
conf.connectInterval,
gxnet.WSSHostAddress(conf.ServerHost, conf.ServerPort, conf.ServerPath),
conf.CertFile,
conf.KeyFile,
conf.CACert,
)
} else {
client.gettyClient = getty.NewClient(
(int)(conf.ConnectionNum),
conf.connectInterval,
gxnet.WSHostAddress(conf.ServerHost, conf.ServerPort, conf.ServerPath),
)
}
client.gettyClient.RunEventLoop(newSession)
}
......@@ -133,12 +145,14 @@ func initSignal() {
// log.Warn("app exit now by force...")
// os.Exit(1)
log.Exit("app exit now by force...")
log.Close()
})
// 要么survialTimeout时间内执行完毕下面的逻辑然后程序退出,要么执行上面的超时函数程序强行退出
uninitClient()
// fmt.Println("app exit now...")
log.Exit("app exit now...")
log.Close()
return
}
}
......
-----BEGIN CERTIFICATE-----
MIIDIDCCAgigAwIBAgIJAPQwJWS2pKjcMA0GCSqGSIb3DQEBBQUAMBQxEjAQBgNV
BAMTCTEyNy4wLjAuMTAeFw0xNzAyMDkwNjUxNTFaFw0zMDEwMTkwNjUxNTFaMBQx
EjAQBgNVBAMTCTEyNy4wLjAuMTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC
ggEBALJt2JNCe/K0/x+ITJpazanaRYohaVUuMPFN04a7tqFocfrxej2sGBl+YN/n
9SWSgABUeEu9/Cyo+um1ArjaIydfpFufY9H+JmtJqvO+s00LD67ouN7V+nFXJcSt
qbBOqtaDmUwk1fdPOvOPi8e5Sp6o9z2CafsAxRQT5rru3hTdt2fLuVdCDIHiPLvZ
DdzcrEcP1xC2uSMFai0GdqZoRyaz2lqI7XBqWpijddeuD5R7PY1wQ/OPYBI3Y1c2
DSr0gBT0AfdsN+bo07hu3ZB+id0V9ZMfkgiWWZFkiiY+R2aRGTB02n2nrSDEAaY0
95FPYqZmpbafrPLb/74mb3DAt9ECAwEAAaN1MHMwHQYDVR0OBBYEFBfKz0wggCwi
+DWdTbCXvhM2FiGwMEQGA1UdIwQ9MDuAFBfKz0wggCwi+DWdTbCXvhM2FiGwoRik
FjAUMRIwEAYDVQQDEwkxMjcuMC4wLjGCCQD0MCVktqSo3DAMBgNVHRMEBTADAQH/
MA0GCSqGSIb3DQEBBQUAA4IBAQCE3v+e85TZJ5azrrV/ow1TIMd6szQV9TLEbxTK
tQsT7l7weRxzOARYN/UO9lS4RHgi6A0dNJDK/+AhXGnZ0KwCfU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gYEA9asV
udmx8jhoYI3owNLgea2Mr5co4rOXyA8Sd2ZjKGiSvJ2WgjFCYyoiPcJEqiYifNtH
4913OXrVptpy5B56BfM35e+ES1GX3LanW7Vl37YJ+SFFnoAq2EMhQIMOQrCGsDnV
aa36SpjVjqsEIuzl4vK7buCfY3AdCsaFGgSIw0ECgYBBk0ixEaoFHhxC153ms5Fz
VC7j1Gmg+M7QyWPXWwVI51eaJWj50J1EgVdqBp+A4M+7kS6IwnAuYMOypVNlzOrZ
YlX71lQ6aAgr/xLB3QLvSN0/7xBWysQMb9zk6kkSTa7a+E3dU+6RsT0ESzmVT7C0
+rwAeSREk7xppbDFRjrkYQKBgHYSVgzOzjGGXtQZIEack3qnqLgzxFjAzDBA3jU4
pmujZvL0IoRMPIYAmBhqqCnGzkiH85NWu5iKqujYkOOGqkr1zGXcqg6xFnXj66eu
FVph2YU9MoKtQupRyUeCNXZj9Tf5c9Ko5WS489rv4rsOdKaQ1vjBSJm4Jp0pMIuC
pmCBAoGAVG6iDOPiQoZLroF4LRv7OfKxs+tcHA/EbeHDNtDlE/s8pbimSVb7valy
nV3nQ5TouxDBeJjlaH91oVK3OeeOCToBf52oMu/w3XngAdSd/6iq6q192UvIFvcR
Q/jsKRp/5tqhrN4HK4uDV2dtcHZb3J77l0kR4ha4TNgKyPqov64=
-----END RSA PRIVATE KEY-----
......@@ -7,12 +7,19 @@ AppName = "ECHO-CLIENT"
LocalHost = "127.0.0.1"
# server
WSSEnable = true
# ServerHost = "127.0.0.1"
ServerHost = "192.168.8.3"
# ServerHost = "192.168.8.3"
ServerHost = "localhost"
ServerPort = 10000
ServerPath = "/echo"
ProfilePort = 10080
# cert
# CertFile = "./conf/cert/client.crt"
# KeyFile = "./conf/cert/client.key"
# CACert = "./conf/cert/ca.crt"
# connection pool
# 连接池连接数目
ConnectionNum = 2
......
......@@ -3,7 +3,7 @@
<tag>stdout</tag>
<type>console</type>
<!-- level is (:?FINEST|FINE|DEBUG|TRACE|INFO|WARNING|ERROR) -->
<level>DEBUG</level>
<level>INFO</level>
</filter>
<filter enabled="false">
<tag>debug_file</tag>
......
......@@ -73,6 +73,7 @@ type (
// generate_cert -host ikuernto.com
CertFile string
KeyFile string
CACert string
// session tcp parameters
GettySessionParam GettySessionParam `required:"true"`
......
......@@ -150,7 +150,7 @@ func initServer() {
// run server
if conf.CertFile != "" && conf.KeyFile != "" {
server.RunWSSEventLoop(newSession, pathList[idx], conf.CertFile, conf.KeyFile)
server.RunWSSEventLoop(newSession, pathList[idx], conf.CertFile, conf.KeyFile, conf.CACert)
log.Debug("server bind addr{wss://%s/%s} ok!", addr, pathList[idx])
} else {
server.RunWSEventLoop(newSession, pathList[idx])
......@@ -182,12 +182,14 @@ func initSignal() {
// log.Warn("app exit now by force...")
// os.Exit(1)
log.Exit("app exit now by force...")
log.Close()
})
// 要么survialTimeout时间内执行完毕下面的逻辑然后程序退出,要么执行上面的超时函数程序强行退出
uninitServer()
// fmt.Println("app exit now...")
log.Exit("app exit now...")
log.Close()
return
}
}
......
-----BEGIN CERTIFICATE-----
MIIC9TCCAd2gAwIBAgIRANmtP/9kdedbv2KRg4M/wTAwDQYJKoZIhvcNAQELBQAw
EjEQMA4GA1UEChMHQWNtZSBDbzAeFw0xNzAyMDgxMjIxMTRaFw0xODAyMDgxMjIx
MTRaMBIxEDAOBgNVBAoTB0FjbWUgQ28wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAw
ggEKAoIBAQCqOGlQ7AdWE4AfjRisSKKlefSkEZMMBJCdRs1VCVrHf5uAh7+dsLNI
EIO/RAGHIJv+rpyyygt6f+tsZEAWV5+cTtvsQ81VX0c6G4oLPFyICUz7j3uB+3TH
9BUJAgG+wtYBrKde7SfjZQ9bfBvuSgrQ4GYLIzCs9zLhup59Zr8C+OqBFohz0TiI
I61ydGGOpp6k/6hlYr4BlAvUfx13r+rIMKljsRw1aDyY8rY5ZeqRlewEVI4l0EKT
tAT1sC3qgTFP4RNXkcO4Q5Yp9rmFSvCs2hWi5yCzHTLAcrDEw7GGONsa7BS2pT0Q
9EQLJHmfxX972CQTnK0PHzidzQoaG6sbAgMBAAGjRjBEMA4GA1UdDwEB/wQEAwIF
oDATBgNVHSUEDDAKBggrBgEFBQcDATAMBgNVHRMBAf8EAjAAMA8GA1UdEQQIMAaH
BH8AAAEwDQYJKoZIhvcNAQELBQADggEBAKjsTfZALRFWOoHrMO7gqHUX7v0GuaZu
C4YevACbYsdJzMMeBjuHMRJPwt1duZ7nAq/CTyGOZNXg5X2ucNP0apktYY9ZMb9q
hpC0it8Xzop4eBx8hHMwmi0yfx06lun6sn/GHVThxa/kMW5FrqamXGaFnmB2Jypr
ZGoNqgzxu0HbVcp/5iWLBuKcGupddSCeW325dONZzwQG82ppyEIPyN5wcbJMNzr2
SdcnUyNhMqa03flYmDLgV0IjXJGlkCduc4YbrAqkiTaifiPXfLAOpAhv/sQHdB/3
SGbgKLtFa7HOUKAUGT2FINwnBlFHEHvS8MBjgXYqOZt69UYYhUllpeU=
-----END CERTIFICATE-----
#!/usr/bin/env bash
openssl genrsa -out server.key 2048
openssl req -new -x509 -key server.key -out server.crt
-----BEGIN RSA PRIVATE KEY-----
MIIEowIBAAKCAQEAqjhpUOwHVhOAH40YrEiipXn0pBGTDASQnUbNVQlax3+bgIe/
nbCzSBCDv0QBhyCb/q6cssoLen/rbGRAFlefnE7b7EPNVV9HOhuKCzxciAlM+497
gft0x/QVCQIBvsLWAaynXu0n42UPW3wb7koK0OBmCyMwrPcy4bqefWa/AvjqgRaI
c9E4iCOtcnRhjqaepP+oZWK+AZQL1H8dd6/qyDCpY7EcNWg8mPK2OWXqkZXsBFSO
JdBCk7QE9bAt6oExT+ETV5HDuEOWKfa5hUrwrNoVoucgsx0ywHKwxMOxhjjbGuwU
tqU9EPRECyR5n8V/e9gkE5ytDx84nc0KGhurGwIDAQABAoIBAEuCWrWa/mYgoGVe
oeNLFVtyjiN56FEcdUpPbiaaz7pP0RtjHI1HJUCCku71q/fVb12696gYGJ9uv3C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ZMaUqXE3FXNUuhqxHBjLogxQZgLVn8AWvn
eMbQmHECgYEA5Cnb5v5FdjR3t8yvIZ0wAcRj95TaEWJMG0/0H5Env0fUctJucdE0
Obk52V2zqBH1bc2OdF1fhfE3hZf33TxX7QWjeBvOd8Yw77jYxaJYns1vacLMA1Da
nPsHfyV/8rLtlO2XIitYS3qEJXlRJPUu0GunenoDRibjvigeKMUbSPsCgYEAxnaE
4QHGCYHPtMk2GtzURcJSv/OxNd2zrf9ZBm0ypS3Uy97Y3RRqNouSacnk9KIVS6Cl
DYtOMIw8VQBTm8YgMO2ThbUWeaTkM0oG5JZqQqMWn8mq7ixvyPu7CahT556S35Vn
gYthxKaooWaUVeZwo/vS1//nFubVxboMBxed6osCgYEAy9pCaT3hXd0+4W71Qjko
vUt0ba4Gr+V9TiG/YbzVIGfS/svYdcSOvswpTXYUoCN7fqFbl8gdIpUEIE5I3Nef
T1vsU9G0RPtEmcozk1CbkTbHRl0O3h+NUxhN+GHO0U7gSmGE2LiVaMqL6tdbkoOl
Uf39YsZEypbQgANj/tUsraUCgYBwslaMavRo66Tl1Sh7IpELt+hDhf9IRkfE8247
PwD2WUswJbBiAji6FpGirvnrjKqpEmUHhuZ0nP2ZiyDvIRegkRgnYgiMNP08vrmh
TmSyyGeNfvgoXWVw7LluJ37V1O80NWPcZSi0garaVCTBjqTCCbrV20P/dj9IE3jH
AjszNwKBgQDJMK/nfKzzce/+5iUy756jAJu9MsyhI80NUrJKOhCo0HfoOnGFhSb4
nXFl1WZ1C08EjNGeCQrtVX6h+Mr2SmEiguH/5hy7/EcAjBdcRKDN9uS4laB+RDZw
QJODcgREy2X/6rCgOH3m7s9NUWw2ZjR8fNnBeJi0OctC+0WZQsCfQQ==
-----END RSA PRIVATE KEY-----
......@@ -3,9 +3,10 @@
AppName = "ECHO-SERVER"
Host = "0.0.0.0"
# Host = "0.0.0.0"
# Host = "127.0.0.1"
# Host = "192.168.35.1"
Host = "localhost"
Ports = ["10000", "20000"]
Paths = ["/echo", "/echo"]
ProfilePort = 10086
......@@ -22,8 +23,9 @@ SessionNumber = 700
FailFastTimeout = "3s"
# cert
CertFile = "./conf/cert/cert.pem"
KeyFile = "./conf/cert/key.pem"
CertFile = "./conf/cert/server.crt"
KeyFile = "./conf/cert/server.key"
# CACert = "./conf/cert/ca.crt"
# tcp
[GettySessionParam]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment