100 Commits
Author SHA1 Message Date
xtaciandGitHub 2ec1db9c12 Merge pull request #96 from testwill/bytes
chore: use bytes.Equal instead
2023-10-19 22:06:00 +08:00
xtaci 79ed6364e6 differentiate control frame and data frame 2023-02-14 22:19:42 +08:00
xtaci bf0d5ac63f add openCloseTimeout for stream open and close 2023-02-14 21:56:01 +08:00
xtaci 46a59b2e89 only keep writeFrame with a default timeout 2023-02-14 21:46:07 +08:00
xtaci dbf64f502a always timeout for writeFrame 2023-02-14 20:33:47 +08:00
xtaci f8f99c6782 set write timeout only 2023-02-14 20:15:44 +08:00
xtaci a54d6cb361 control of shaper heap size 2023-02-12 19:51:18 +08:00
xtaci d5ca637a0e ignore prio settinn in writeFrameInternal 2023-02-07 22:06:41 +08:00
xtaci 5bfb5a97e0 fix a possible prio error 2023-02-07 21:23:07 +08:00
xtaciandGitHub 089fd283c7 Merge pull request #92 from zachzhaozy/add-function-closechan-for-session-module
Add CloseChan function to session module
2022-12-01 16:38:55 +08:00
xtaci 09e2c01560 fix shaper prio overflow 2021-09-22 21:38:58 +08:00
xtaciandGitHub eba6ee1d2a Merge pull request #80 from genisysram/master
Adding code to run on Powersystem
2020-12-10 17:20:30 +08:00
xtaci fa45f32081 bug fix for https://github.com/xtaci/smux/issues/82 2020-11-25 22:53:43 +08:00
xtaciandGitHub f7188026ba Update README.md 2020-07-04 20:39:58 +08:00
xtaciandGitHub 637399ad43 Merge pull request #72 from sintanial/feature/optional_keepalive
add ability to turn off keepalive
2020-05-23 17:18:31 +08:00
xtaci 0276e0fe3b optimized msb with http://graphics.stanford.edu/~seander/bithacks.html 2020-05-20 23:09:49 +08:00
xtaci 5052c856b8 optimize msb() function to de bruijin sequence 2020-05-20 22:33:26 +08:00
xtaci c873c7348e update README.md 2020-03-17 12:20:51 +08:00
xtaciandGitHub 0573e94b9f Update README.md 2020-03-15 20:21:18 +08:00
xtaciandGitHub 3e17c5002e Update README.md 2020-03-15 20:20:17 +08:00
xtaci c6969d8a76 fix typos 2020-02-20 17:16:37 +08:00
xtaci 80072d9b5c fix a potential unexpected closing while bucket has exhausted 2020-02-20 17:13:26 +08:00
xtaci d2d7690bcc trigger waitRead to return in SetReadDeadline 2020-02-09 18:33:05 +08:00
xtaciandGitHub 0d0f7cd655 Update README.md 2020-02-09 18:30:19 +08:00
xtaciandGitHub 70d8448469 Update README.md 2020-02-09 18:30:03 +08:00
xtaci 292d504d11 OpenStream should return false if read has error issue#61 2020-01-20 14:39:04 +08:00
xtaci 6da22a180e hide unused api 2020-01-16 22:23:37 +08:00
xtaci 5e1b1674e1 add comments 2020-01-16 22:11:28 +08:00
xtaci e7525af09e remove poller API 2020-01-16 22:07:10 +08:00
xtaci 7e166e41c8 remove for in PollWait 2020-01-16 21:58:35 +08:00
xtaci b8558d7e96 update 2020-01-16 21:51:41 +08:00
xtaci 3c744e6653 tidy 2020-01-16 21:47:48 +08:00
xtaci 211bc4a98c fix spelling 2020-01-04 00:23:22 +08:00
xtaciandGitHub 53dc3f6be9 Update README.md 2019-12-28 22:44:35 +08:00
xtaci 7cf9c03a7c update README.md 2019-12-28 22:41:12 +08:00
xtaci fe8b9a2233 Squashed commit of the following:
commit 4d53a564a987a171d9cc563ee73e92c7faa3624a
Author: xtaci <daniel820313@gmail.com>
Date:   Sat Dec 28 22:14:17 2019 +0800

    add function PeekSize

commit 9ca9c83c3f06aca7ceef161f39adce12de2d1ec5
Author: xtaci <daniel820313@gmail.com>
Date:   Sat Dec 28 21:53:41 2019 +0800

    add Peak
2019-12-28 22:16:15 +08:00
xtaci 32b9d9aa29 remove redundant line 2019-12-28 21:04:08 +08:00
xtaci a8a5f9cbbe test WriteTo v2 2019-12-26 21:25:25 +08:00
xtaci 3ab6b40f74 add tests to ver2 2019-12-26 21:16:53 +08:00
xtaci 9548a6c9b7 fix mod 2019-12-26 17:28:27 +08:00
xtaci f182401f19 merge protocol version 2 in master 2019-12-26 17:25:11 +08:00
xtaci fe34c960fb Revert "config protocol Version in Config"
This reverts commit 9f184cedda.
2019-12-26 13:39:01 +08:00
xtaci 9f184cedda config protocol Version in Config 2019-12-26 12:30:53 +08:00
xtaci 634a18c835 fix tests 2019-12-26 12:14:00 +08:00
xtaci f386d90508 Squashed commit of the following:
commit 486431f53deb10b0e6ee51b47785f6f06f0d5733
Author: xtaci <daniel820313@gmail.com>
Date:   Thu Dec 26 12:02:52 2019 +0800

    remove in-package pkg/errors

commit 213597603a726735678024ec6051800c46ed0bd0
Author: xtaci <daniel820313@gmail.com>
Date:   Thu Dec 26 11:58:36 2019 +0800

    fix poll

commit d1f7aeefbeb40da99d47ba2b7db5bd403c09ddba
Author: xtaci <daniel820313@gmail.com>
Date:   Thu Dec 26 11:17:28 2019 +0800

    fix error

commit 152918f9b531c06b42c764f0aff35d4bb9315713
Author: xtaci <daniel820313@gmail.com>
Date:   Wed Dec 25 23:27:18 2019 +0800

    poll for v1
2019-12-26 12:06:21 +08:00
xtaciandGitHub 6125539908 Update README.md 2019-12-19 21:42:40 +08:00
xtaci 3b54c0fc00 fix a possible race condition 2019-12-19 16:18:34 +08:00
xtaci 36273058e1 Revert "remove allocator"
This reverts commit f893f033aa.
2019-12-18 22:13:51 +08:00
xtaci f893f033aa remove allocator 2019-12-18 21:44:35 +08:00
xtaci 795b9695f3 should return all tokens 2019-11-26 22:59:58 +08:00
xtaci c913b2d39b add stream.WriteTo method 2019-11-26 21:17:12 +08:00
xtaciandGitHub 2c4f88087e Update README.md 2019-09-23 00:33:13 +08:00
xtaci 0e3229b827 expose errors definition in smux 2019-09-22 14:31:20 +08:00
xtaci 6bc2f142ec add go.sum 2019-09-21 23:05:32 +08:00
xtaci b8f0ac5a8b add go.mod 2019-09-21 23:03:49 +08:00
xtaci 1d5f64e899 add Open() 2019-09-21 20:14:53 +08:00
xtaci 35b0b0af0b add func Accept() 2019-09-21 20:06:31 +08:00
xtaciandGitHub 2d069975ff Update README.md 2019-09-10 23:06:34 +08:00
xtaci 9c31495dc7 add shaper test 2019-09-10 20:43:25 +08:00
xtaci 6284957b0f fill prio 2019-09-10 20:39:12 +08:00
xtaci 78fdaa98a6 add a shaper for fair transfer 2019-09-10 20:33:49 +08:00
xtaci 6aa95ef6b7 fix incorrect error reporting in tests https://github.com/xtaci/smux/issues/54 2019-08-28 11:41:48 +08:00
xtaci b71f58ec76 adjust test function relates to https://github.com/xtaci/smux/issues/55 2019-08-28 11:25:59 +08:00
xtaciandGitHub 67e00e88db Merge pull request #53 from getlantern/smux-issue-52
Always stop timer in Stream.Read
2019-07-10 13:36:24 +08:00
xtaciandGitHub 79b3c96b84 Update README.md 2019-05-22 11:55:59 +08:00
xtaciandGitHub ce5b21325d Update README.md 2019-05-17 14:43:09 +08:00
xtaci cde199122f add overview comment 2019-05-16 13:27:11 +08:00
xtaciandGitHub a8ecd58ab9 Update README.md 2019-05-16 12:30:04 +08:00
xtaci cfd07e796e add comments to alloc 2019-05-16 12:17:07 +08:00
xtaci 4299d21e8f add method LocalAddr and RemoteAddr 2019-05-14 21:17:35 +08:00
xtaci febb4a5f0d add TestSessionDoubleClose 2019-05-13 21:45:23 +08:00
xtaci 4175cf4235 move heavy ops out and fix once 2019-05-13 21:37:45 +08:00
xtaci 2c8add414c proper error handling 2019-05-13 21:33:06 +08:00
xtaci 401b0da059 safer way to push data to streams 2019-04-24 23:06:33 +08:00
xtaci 4c827cfd42 set nil after token recycle 2019-04-23 21:09:37 +08:00
xtaci 8b93fb28e5 abandom bytes.Buffer for stream buffer 2019-04-23 20:34:21 +08:00
xtaci 4eb72b6c8d frame version check failure will close connection 2019-04-18 19:58:34 +08:00
xtaci 6e0e0d2e80 better handling of token bucket notify 2019-04-17 22:26:12 +08:00
xtaci 5eb9306e00 Revert "make sure streamLock is non-blocking due to receiveBytes"
This reverts commit 20e41dd6bd.
2019-04-17 21:44:28 +08:00
xtaci 20e41dd6bd make sure streamLock is non-blocking due to receiveBytes 2019-04-17 21:29:58 +08:00
xtaci 8a71918d00 copy directly into bytes.Buffer without a tmp buffer 2019-04-08 15:47:16 +08:00
xtaci 427ad5fcc4 remove log 2019-04-07 22:00:13 +08:00
xtaci 77b36b6b12 add buffersWriter interface and optimize for gathered writing 2019-04-07 21:59:32 +08:00
xtaci b45c894069 fan in writeFrameInternal 2019-03-24 18:40:36 +08:00
xtaciandGitHub f4f6ca39c6 Merge pull request #43 from jannson/fix-keepalive-block
fix: writeFrame may block forever in keepalive function
2019-02-13 00:38:44 +08:00
xtaciandGitHub 6cf098d439 Merge pull request #40 from CovenantSQL/master
Expose Stream.die via Stream.GetDieCh for canceling running golang RPC func
2018-12-05 12:40:55 +08:00
xtaciandGitHub f19baee51e Merge pull request #39 from HaraldNordgren/go_versions
Bump Go versions and use '.x' to always get latest patch versions
2018-10-28 23:51:15 +08:00
xtaci 545ecee9d2 fix the deadline test 2018-10-01 11:19:09 +08:00
xtaci 8edaea72f5 fix a test 2018-10-01 11:16:18 +08:00
xtaci 8cc526d020 fix travis build version 2018-10-01 11:10:15 +08:00
xtaci 23098c5322 upd framesize to 32768 to fix crash to the overflow of uint16 2018-10-01 10:54:41 +08:00
xtaci 9bcf9cb852 adjust default frame size 2018-09-28 20:19:29 +08:00
xtaci b993df6776 simplify header handling 2018-09-28 19:40:24 +08:00
xtaciandGitHub e28719eede Merge pull request #27 from longzhiri/master
fix bug: read 0 bytes from a stream will block forever
2018-01-04 17:41:28 +08:00
xtaci c3e18246ff remove an unnecessary condition 2017-12-16 17:30:04 +08:00
xtaciandGitHub c898867f4f Merge pull request #26 from artyom/master
Fixes of issues discovered by code analysis tool
2017-12-13 18:37:12 +08:00
xtaci ebec7ef257 adjust read after close behavior https://github.com/xtaci/smux/issues/23 2017-07-01 21:47:59 +08:00
xtaci 2de5471dfc use mutex instead of atomic for accuracy 2017-04-22 11:45:03 +08:00
xtaci b19bc4137c add a flag for goAway 2017-04-22 11:22:36 +08:00
xtaci 9d687f7d77 handle stream id overflow 2017-04-22 11:05:49 +08:00