306 Commits

Author SHA1 Message Date
Y. T. Chung
2ed53d2bd9 share tcp stream handle 2016-10-22 00:51:00 +08:00
Y. T. Chung
05d3dc2f87 add necessary improvements 2016-10-21 02:19:36 +08:00
Y. T. Chung
5462e5ba28 add sample configs 2016-10-21 01:20:21 +08:00
Y. T. Chung
fe5003f9a2 Updated readme 2016-10-21 01:16:57 +08:00
Y. T. Chung
bbfcec5326 add stat 2016-10-21 01:14:12 +08:00
Y. T. Chung
d27d7414b7 better logs 2016-10-21 00:38:48 +08:00
Y. T. Chung
30b47b6a56 move HttpRequest into http.rs 2016-10-20 08:55:02 +08:00
Y. T. Chung
2cb96a0016 fully impls HTTP proxy 2016-10-19 23:41:42 +08:00
Y. T. Chung
51ea7e5b3f refactor and add necessary support for other http method 2016-10-19 13:31:48 +08:00
Y. T. Chung
434fd6cae8 refactor for code reuse 2016-10-19 11:35:47 +08:00
Y. T. Chung
2e7e403293 initial impls HTTP tunnel 2016-10-19 00:44:36 +08:00
Y. T. Chung
a5ac010315 relay copy cleanup 2016-07-25 23:05:42 +08:00
Y. T. Chung
bde48c6dd2 adjust stack size for log printing 2016-07-24 10:20:50 +08:00
Y. T. Chung
ed5bfb9066 swap read and write stream 2016-07-24 10:09:22 +08:00
Y. T. Chung
919ad6e331 fixed bug 2016-07-24 09:13:51 +08:00
Y. T. Chung
b278d67b3e updated log format 2016-07-24 09:02:02 +08:00
Y. T. Chung
6ed65fd143 upgrade openssl to 1.0.2h 2016-07-09 21:05:42 +08:00
Y. T. Chung
335ee7ff03 exit if accept failed 2016-07-09 13:48:21 +08:00
Y. T. Chung
677a44b5e3 use master coio 2016-07-09 00:49:25 +08:00
Y. T. Chung
5e5a74be07 build with nightly 2016-07-09 00:48:39 +08:00
Y. T. Chung
12dc313194 use new io timeout branch 2016-07-09 00:48:39 +08:00
Y. T. Chung
3d8af1c00d fixed error message 2016-07-09 00:48:39 +08:00
Y. T. Chung
98f786f1c7 add showing system running time 2016-07-09 00:48:39 +08:00
Y. T. Chung
fab4d36cee use github branch 2016-07-09 00:48:39 +08:00
Y. T. Chung
388aa649d6 remove 2016-07-09 00:48:39 +08:00
Y. T. Chung
cdfda8a3f8 add read/write timeout 2016-07-09 00:48:39 +08:00
Y. T. Chung
2ad13ffba4 cached cargo dep 2016-04-30 13:27:09 +08:00
Y. T. Chung
c669632ea7 flush immediately after write 2016-04-26 23:53:46 +08:00
Y. T. CHUNG
63062d430c Merge pull request #25 from eataix/code-cleanup
Code cleanup
2016-03-30 10:25:57 +08:00
Meitian Huang
9670ac9c9f Refine iterator usage
- Replace ``for x in y.iter() { .. }`` with ``for x in &y { .. }`` for
  readability and idiomaticity.
- Prefer ``Vec::extend_from_slice()``, which has been stabilized in
  Rust 1.6. According to the official Rust programming language blog,
  "[t]his method has a significantly faster implementation than the
  more general ``extend()``" [^1].
- Replace ``for idx in 0..table.len() { ... }`` with more idiomatic
  ``for (idx, &item) in table.iter().enumerate()``.

[^1]: http://blog.rust-lang.org/2016/01/21/Rust-1.6.html
2016-03-29 16:31:31 +11:00
Meitian Huang
49a97df3cd Simplify calls to serialize::json::Object
`serialize::json::Object` is equivalent to rust's BTreeMap<String, json::Json>.
We do not need to convert a `&str` into a `&String` before passing it to
`BTreeMap<String, json::Json>::get`, etc.

See also https://doc.rust-lang.org/book/borrow-and-asref.html.
2016-03-29 15:01:04 +11:00
Y. T. Chung
a3c30b10d0 better error formatting 2016-03-26 00:22:36 +08:00
Y. T. CHUNG
0cb0bc5a81 Merge pull request #24 from eataix/update-byteorder
Update dependency ``byteorder`` from 0.3.x to 0.5.x
2016-03-23 17:12:42 +08:00
Meitian Huang
52fd0aefaa Update dependency `byteorder` from 0.3.x to 0.5.x 2016-03-23 13:30:35 +11:00
Y. T. Chung
2179eae6a0 fixed OpenSSL download in AppVeyor CI 2016-03-22 09:07:27 +08:00
Y. T. CHUNG
d5f5a19783 Merge pull request #23 from ReadmeCritic/master
Update README URLs based on HTTP redirects
2016-03-21 23:25:05 +08:00
ReadmeCritic
2502bb9e7a Update README URLs based on HTTP redirects 2016-03-21 07:56:56 -07:00
Y. T. CHUNG
adcb6ee115 Merge pull request #22 from eataix/fix-udp
Increase the default stack size from 64K to 128K
2016-03-21 15:21:20 +08:00
Meitian Huang
2ede417cab Increase the default stack size from 64K to 128K 2016-03-21 12:28:08 +11:00
Y. T. Chung
b64d7229d4 remove printing count 2016-03-20 23:01:03 +08:00
Y. T. Chung
78e08486c9 more specific log filter 2016-03-20 15:01:59 +08:00
Y. T. Chung
d9a550a808 enable printing work_count again 2016-03-19 21:49:57 +08:00
Y. T. Chung
a77f14ca25 fixed compile error, remove most of the unstable features 2016-03-11 18:02:39 +08:00
Y. T. Chung
cff29c3f22 use default stack size method 2016-02-05 17:34:04 +08:00
Y. T. Chung
bf5b541665 use lru-cache on crates.io 2016-01-30 10:34:42 +08:00
Y. T. Chung
37a8849ea3 temporary use lru-cache on Github to build with nightly 2016-01-29 10:13:18 +08:00
Y. T. Chung
eb519f9c24 convert feature is already stablized 2016-01-23 11:42:11 +08:00
Y. T. Chung
7bdae15ebf use lru-cache in crates.io 2015-12-14 22:57:16 +08:00
Y. T. Chung
8340b57dc0 add forbidden_ip for udp server 2015-12-14 01:02:54 +08:00
Y. T. Chung
4d31d1458d process forbidden_ip 2015-12-14 00:46:12 +08:00