1051 Commits

Author SHA1 Message Date
Chen Yufei
ebcb84c973 Comment: why can't require authentication for PAC. 2013-07-29 01:02:36 +08:00
Chen Yufei
9d6d9792a9 Add tunnelAllowedPort option, check before serving CONNECT request. 2013-07-29 00:40:20 +08:00
Chen Yufei
6275626eb2 Fix printing negative server conn count in debug message. 2013-07-28 18:19:24 +08:00
Chen Yufei
34a790b31b Merge branch 'develop', version 0.7.6 0.7.6 2013-07-28 17:23:07 +08:00
Chen Yufei
f9f9edb628 Bump version to 0.7.6 2013-07-28 17:14:36 +08:00
Chen Yufei
0cf818826c Fix bug for close connection response with no body.
cow should add content-length: 0 header to indicate the end of close
connection responses with no body, add chunked encoding for those has body.

Safari will wait for body when cow incorrectly adds the chunked header.
As Safari limits number of concurrent connections to the proxy, it will
block on such erroneous responses.
2013-07-28 16:56:59 +08:00
Chen Yufei
33d5c05796 Print send body debug message with client info. 2013-07-28 15:49:42 +08:00
Chen Yufei
011b6064be Script to group log by client. 2013-07-28 13:52:46 +08:00
Chen Yufei
76dbf0ed80 Collect client&server connection count, better debug message.
Some debug messages now contain "client: <remote addr>", we can group debug
message by client by grep and sorting on remote addr.
2013-07-28 13:46:45 +08:00
Chen Yufei
8147afc57e Change default keep-alive value to 15s. 2013-07-28 12:44:15 +08:00
Chen Yufei
90102b06f9 Use debug log to print parent proxy. 2013-07-28 10:01:14 +08:00
Chen Yufei
1ebb4d39da Do not take special handling on log with debug option. 2013-07-28 01:08:34 +08:00
Chen Yufei
9e28987aac Remove handleClientWriteError. 2013-07-28 00:28:21 +08:00
Chen Yufei
b4e9c056dc Reset client timeout count upon getting request. 2013-07-27 23:02:07 +08:00
Chen Yufei
35dfc9d946 Rename directionConnection to isDirect. 2013-07-27 12:56:08 +08:00
Chen Yufei
6c21001240 Fix response not keep alive by default. 2013-07-26 23:27:52 +08:00
Chen Yufei
4621a52b5a Always try parent proxy in case of dial error. 2013-07-25 23:08:27 +08:00
Chen Yufei
950462edc1 Print set read deadline error message. 2013-07-25 21:30:07 +08:00
Chen Yufei
29b0ed4ebe Merge branch 'develop', version 0.7.5 0.7.5 2013-07-25 10:49:01 +08:00
Chen Yufei
d906877e1d Bump version to 0.7.5 2013-07-25 10:43:24 +08:00
Chen Yufei
dba39e29fc Print request info when parseHeader get error. 2013-07-23 18:50:11 +08:00
Chen Yufei
7a28cf1530 Merge branch 'develop', fix crash when auth IPv6 client. 2013-07-19 12:43:02 +08:00
Chen Yufei
a2f0814386 Remove splitHostPort, use net.SplitHostPort exclusively. 2013-07-19 12:37:50 +08:00
Chen Yufei
5773efd5c9 Merge pull request #60 from glacjay/develop
Remove surrounding "[]" of IPv6 address in splitHostPort.
2013-07-18 01:58:07 -07:00
Jay True
597f056fc5 remote surrounding "[]" of IPv6 address 2013-07-18 16:46:57 +08:00
Chen Yufei
167eab03d6 Add more info in response and shadowsocks error messages. 2013-07-18 14:14:26 +08:00
Chen Yufei
40cdfbd6ab Merge branch 'develop', provide binary for Raspberry Pi. 2013-07-17 20:29:23 +08:00
Chen Yufei
44b7433881 Provide armv6 binary. 2013-07-17 20:17:46 +08:00
Chen Yufei
0dc8673640 Remove force rebuild flag in build script. 2013-07-15 18:18:33 +08:00
Chen Yufei
7dae141170 Merge branch 'develop', version 0.7.4 0.7.4 2013-07-15 18:18:10 +08:00
Chen Yufei
97e1cecaa8 Bump version to 0.7.4 2013-07-15 18:01:03 +08:00
Chen Yufei
9afcc3a65f Assume keep-alive connection by default. 2013-07-15 16:47:56 +08:00
Chen Yufei
dfb746852c Avoid adding duplicate connection header.
Some clients send proxy-connection along with connection header, which
triggers parseConnection function twice and adds an extra connection header.
2013-07-15 16:47:22 +08:00
Chen Yufei
9c54c815d0 Ignore UTF-8 BOM in config file.
To avoid config parse error caused by stupid Windows text editors.
2013-07-12 23:18:16 +08:00
Chen Yufei
c93194d204 Merge branch 'develop', version 0.7.3 0.7.3 2013-07-10 20:13:22 +08:00
Chen Yufei
ec9a44b025 Show different message for update in install script. 2013-07-10 20:09:34 +08:00
Chen Yufei
1886381b32 Bump version to 0.7.3 2013-07-10 19:46:27 +08:00
Chen Yufei
88b71b67c2 Download cow to unique temp directory during install. 2013-07-10 19:43:52 +08:00
Chen Yufei
efe2e43b16 Fix incorrectly changing header value to lower case. 2013-07-10 10:43:19 +08:00
Chen Yufei
0f69e4db45 One pass to copy&convert upper/lower case for ascii. 2013-07-10 10:23:49 +08:00
Chen Yufei
1088b0df10 Rename variable in site stat. 2013-07-10 01:14:05 +08:00
Chen Yufei
c4acd98fed Filter sites covered by user specified domain on load. 2013-07-10 01:12:52 +08:00
Chen Yufei
02026c6925 Add gov to top level domain in pac.js 2013-07-09 18:31:54 +08:00
Chen Yufei
e82856b9ee Comment the status of http 100 continue support. 2013-07-07 23:26:37 +08:00
Chen Yufei
2c902f8dde Add logrotate config file. 2013-07-07 15:07:30 +08:00
Chen Yufei
6b539bdd1e Update README. 2013-07-07 12:20:06 +08:00
Chen Yufei
1965c0b4ed Rename shouldHandleRetry to shouldRetry. 2013-07-06 11:59:25 +08:00
Chen Yufei
c92c9b41ef Update acknowledgement in README. 2013-07-05 15:45:23 +08:00
Chen Yufei
b195596e7f Merge pull request #54 from xupefei/develop
Add cow-hide.exe to allow COW running in silence (Windows)
2013-07-05 00:02:50 -07:00
Chen Yufei
1842600728 Do not forward expect header, ignore 100 continue response. 2013-07-05 14:59:50 +08:00