From 2ae755b23c5e714c16ccaee2dc9974a806295f5f Mon Sep 17 00:00:00 2001 From: "pzrr@qq.com" Date: Tue, 24 Apr 2018 09:05:34 +0800 Subject: [PATCH 1/4] =?UTF-8?q?####=20Version=201.4.9.3=20*=20=E9=87=8D?= =?UTF-8?q?=E8=A6=81=EF=BC=9Ago=E7=89=88=E6=9C=AC=E9=80=82=E9=85=8D?= =?UTF-8?q?=E5=8D=87=E7=BA=A7=E4=B8=BA1.9+=20*=20=E8=B0=83=E6=95=B4UploadF?= =?UTF-8?q?ile.Size=E5=AE=9E=E7=8E=B0=E6=96=B9=E6=B3=95=EF=BC=8C=E7=9B=B4?= =?UTF-8?q?=E6=8E=A5=E8=BF=94=E5=9B=9EHeader.Size=E6=95=B0=E6=8D=AE=20*=20?= =?UTF-8?q?=E8=B0=83=E6=95=B4dotweb.Classic=E7=AD=BE=E5=90=8D=E4=B8=BAClas?= =?UTF-8?q?sic(logPath=20string),=E8=8B=A5=E4=BC=A0=E5=85=A5logPath?= =?UTF-8?q?=E4=B8=BA=E7=A9=BA=EF=BC=8C=E5=88=99=E9=BB=98=E8=AE=A4=E4=BB=A5?= =?UTF-8?q?"bin-root/logs"=E4=B8=BA=E6=97=A5=E5=BF=97=E7=9B=AE=E5=BD=95=20?= =?UTF-8?q?*=20=E6=96=B0=E5=A2=9Edotweb.ClassicWithConf(config=20*config.C?= =?UTF-8?q?onfig),=E6=94=AF=E6=8C=81=E5=88=9D=E5=A7=8B=E5=8C=96=E4=BC=A0?= =?UTF-8?q?=E5=85=A5config=E8=AE=BE=E7=BD=AE=20*=20=E8=B0=83=E6=95=B4?= =?UTF-8?q?=E9=BB=98=E8=AE=A4Log=E7=9B=AE=E5=BD=95=E7=94=B1"bin-root"?= =?UTF-8?q?=E4=B8=BA"bin-root/logs"=20*=202018-04-24=2008:30?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 694db11..7d45419 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,9 @@ # DotWeb -Simple and easy go web micro framework +Simple and easy go web micro framework -document: https://www.kancloud.cn/devfeel/dotweb/346608 +Important: Now need go1.9+ version support. + +Document: https://www.kancloud.cn/devfeel/dotweb/346608 CookBook: https://www.kancloud.cn/devfeel/dotweb/439314 From 9c9e86a699e99dddddae00c5e2ec60f29f034ab1 Mon Sep 17 00:00:00 2001 From: "pzrr@qq.com" Date: Thu, 10 May 2018 10:38:30 +0800 Subject: [PATCH 2/4] ignore session_update_redis panic error --- session/store_redis.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/session/store_redis.go b/session/store_redis.go index 44b8c97..54857ad 100644 --- a/session/store_redis.go +++ b/session/store_redis.go @@ -65,6 +65,12 @@ func (store *RedisStore) SessionExist(sessionId string) bool { //SessionUpdate update session state in store func (store *RedisStore) SessionUpdate(state *SessionState) error { + defer func(){ + //ignore error + if err := recover(); err != nil { + //TODO deal panic err + } + }() redisClient := redisutil.GetRedisClient(store.serverIp) bytes, err := gob.EncodeMap(state.values) if err != nil { From 03245a2d8c62f052eb6abdfdb064d346ffc2f73b Mon Sep 17 00:00:00 2001 From: "pzrr@qq.com" Date: Thu, 10 May 2018 10:39:26 +0800 Subject: [PATCH 3/4] ignore session_update_redis panic error --- session/store_redis.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/session/store_redis.go b/session/store_redis.go index 54857ad..7da61ea 100644 --- a/session/store_redis.go +++ b/session/store_redis.go @@ -4,6 +4,7 @@ import ( "github.com/devfeel/dotweb/framework/encodes/gob" "github.com/devfeel/dotweb/framework/redis" "sync" + "fmt" ) const ( @@ -68,6 +69,7 @@ func (store *RedisStore) SessionUpdate(state *SessionState) error { defer func(){ //ignore error if err := recover(); err != nil { + fmt.Println("SessionUpdate-Redis error", err) //TODO deal panic err } }() From de0be56914583375fe9c9f78d41ecdd85d4f2332 Mon Sep 17 00:00:00 2001 From: "pzrr@qq.com" Date: Thu, 10 May 2018 10:40:06 +0800 Subject: [PATCH 4/4] sync readme from master --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7d45419..4f9f63c 100644 --- a/README.md +++ b/README.md @@ -55,7 +55,7 @@ func StartServer() error { #### Config Example * [dotweb.conf](https://github.com/devfeel/dotweb/blob/master/example/config/dotweb.conf) -* [dotweb.json](https://github.com/devfeel/dotweb/blob/master/example/config/dotweb.json.conf) +* [dotweb.json](https://github.com/devfeel/dotweb/blob/master/example/config/dotweb.json)   ## 4. Performance