Browse Source

fix workers

1.4
clowwindy 11 years ago
parent
commit
8f19fe278c
  1. 3
      CHANGES
  2. 8
      README.md
  3. 1
      shadowsocks/server.py

3
CHANGES

@ -1,3 +1,6 @@
1.4.4 2014-05-17
- Support multiple workers
1.4.3 2014-05-13 1.4.3 2014-05-13
- Fix Windows - Fix Windows

8
README.md

@ -1,7 +1,7 @@
shadowsocks shadowsocks
=========== ===========
Current version: 1.4.3 [![Build Status][1]][0] Current version: 1.4.4 [![Build Status][1]][0]
shadowsocks is a lightweight tunnel proxy which can help you get through firewalls. shadowsocks is a lightweight tunnel proxy which can help you get through firewalls.
@ -55,7 +55,8 @@ Example:
"password":"mypassword", "password":"mypassword",
"timeout":300, "timeout":300,
"method":"aes-256-cfb", "method":"aes-256-cfb",
"fast_open": false "fast_open": false,
"workers": 1
} }
Explanation of the fields: Explanation of the fields:
@ -70,6 +71,7 @@ Explanation of the fields:
| timeout | in seconds | | timeout | in seconds |
| method | encryption method, "aes-256-cfb" is recommended | | method | encryption method, "aes-256-cfb" is recommended |
| fast_open | use [TCP_FASTOPEN][2], true / false | | fast_open | use [TCP_FASTOPEN][2], true / false |
| workers | number of workers, available on Unix/Linux |
Run `ssserver -c /etc/shadowsocks.json` on your server. To run it in the background, [use supervisor][8]. Run `ssserver -c /etc/shadowsocks.json` on your server. To run it in the background, [use supervisor][8].
@ -91,7 +93,7 @@ Command line args
You can use args to override settings from `config.json`. You can use args to override settings from `config.json`.
sslocal -s server_name -p server_port -l local_port -k password -m bf-cfb sslocal -s server_name -p server_port -l local_port -k password -m bf-cfb
ssserver -p server_port -k password -m bf-cfb ssserver -p server_port -k password -m bf-cfb --workers 2
ssserver -c /etc/shadowsocks/config.json ssserver -c /etc/shadowsocks/config.json
Salsa20 Salsa20

1
shadowsocks/server.py

@ -284,6 +284,7 @@ def main():
os.waitpid(child, 0) os.waitpid(child, 0)
else: else:
logging.warn('worker is only available on Unix/Linux') logging.warn('worker is only available on Unix/Linux')
run_server()
else: else:
run_server() run_server()

Loading…
Cancel
Save