Skip to content

Commit 83bff37

Browse files
authored
fix mem leak (#30) (#31)
1 parent ca5fe80 commit 83bff37

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# GoBeansDB [![Build Status](https://travis-ci.org/douban/gobeansdb.svg?branch=master)](https://travis-ci.org/douban/gobeansdb)
1+
# GoBeansDB [![Build Status](https://travis-ci.org/douban/gobeansdb.svg?branch=master)](https://travis-ci.org/douban/gobeansdb) [![Release](https://img.shields.io/github/v/release/douban/gobeansdb)](https://github.com/douban/gobeansdb/releases)
22

33
Yet anonther distributed key-value storage system from Douban Inc.
44

memcache/server.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ func (c *ServerConn) ServeOnce(storageClient StorageClient, stats *Stats) (err e
158158
if !resp.Noreply {
159159
if !readTimeout && overdue(req.ReceiveTime, time.Now()) {
160160
req.SetStat("process_timeout")
161+
resp.CleanBuffer()
161162
resp = new(Response)
162163
resp.Status = "PROCESS_TIMEOUT"
163164
resp.Msg = "process_timeout"

0 commit comments

Comments
 (0)