From b1eecf8792083ee5d8457c24bcb40c59af23fc5f Mon Sep 17 00:00:00 2001 From: mikespook Date: Thu, 27 Dec 2012 13:41:33 +0800 Subject: [PATCH] a better queue size --- README.md | 7 +------ common/gearman.go | 4 ++-- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 78762fa..d7356ae 100644 --- a/README.md +++ b/README.md @@ -3,11 +3,6 @@ Gearman-Go This package is a [Gearman](http://gearman.org/) API for [Golang](http://golang.org). It was implemented a native protocol for both worker and client API. -Copyright 2012 Xing Xing -All rights reserved. -Use of this source code is governed by a MIT license that can be found -in the LICENSE file. - Install ======= @@ -58,7 +53,7 @@ Usage Authors ======= -Xing Xing [Blog](http://mikespook.com) [@Twitter](http://twitter.com/mikespook) + * Xing Xing [Blog](http://mikespook.com) [@Twitter](http://twitter.com/mikespook) Open Source - MIT Software License ================================== diff --git a/common/gearman.go b/common/gearman.go index e9cc5e4..3e7a72b 100644 --- a/common/gearman.go +++ b/common/gearman.go @@ -13,9 +13,9 @@ import ( const ( NETWORK = "tcp" // queue size - QUEUE_SIZE = 512 + QUEUE_SIZE = 8 // read buffer size - BUFFER_SIZE = 1024 + BUFFER_SIZE = 2048 // \x00REQ REQ = 5391697