Browse Source

a better queue size

tags/0.2
mikespook 11 years ago
parent
commit
b1eecf8792
2 changed files with 3 additions and 8 deletions
  1. +1
    -6
      README.md
  2. +2
    -2
      common/gearman.go

+ 1
- 6
README.md View File

@@ -3,11 +3,6 @@ Gearman-Go
This package is a [Gearman](http://gearman.org/) API for [Golang](http://golang.org). 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. It was implemented a native protocol for both worker and client API.


Copyright 2012 Xing Xing <mikespook@gmail.com>
All rights reserved.
Use of this source code is governed by a MIT license that can be found
in the LICENSE file.

Install Install
======= =======


@@ -58,7 +53,7 @@ Usage
Authors Authors
======= =======


Xing Xing <mikespook@gmail.com> [Blog](http://mikespook.com) [@Twitter](http://twitter.com/mikespook)
* Xing Xing <mikespook@gmail.com> [Blog](http://mikespook.com) [@Twitter](http://twitter.com/mikespook)


Open Source - MIT Software License Open Source - MIT Software License
================================== ==================================


+ 2
- 2
common/gearman.go View File

@@ -13,9 +13,9 @@ import (
const ( const (
NETWORK = "tcp" NETWORK = "tcp"
// queue size // queue size
QUEUE_SIZE = 512
QUEUE_SIZE = 8
// read buffer size // read buffer size
BUFFER_SIZE = 1024
BUFFER_SIZE = 2048


// \x00REQ // \x00REQ
REQ = 5391697 REQ = 5391697


Loading…
Cancel
Save