109 Commits
Author SHA1 Message Date
xtaci 79ed6364e6 differentiate control frame and data frame 2023-02-14 22:19:42 +08:00
xtaci a54d6cb361 control of shaper heap size 2023-02-12 19:51:18 +08:00
xtaci 09e2c01560 fix shaper prio overflow 2021-09-22 21:38:58 +08:00
xtaci fa45f32081 bug fix for https://github.com/xtaci/smux/issues/82 2020-11-25 22:53:43 +08:00
xtaci d2d7690bcc trigger waitRead to return in SetReadDeadline 2020-02-09 18:33:05 +08:00
xtaci 6da22a180e hide unused api 2020-01-16 22:23:37 +08:00
xtaci e7525af09e remove poller API 2020-01-16 22:07:10 +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
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 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 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
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
xtaci 0e3229b827 expose errors definition in smux 2019-09-22 14:31:20 +08:00
xtaci 78fdaa98a6 add a shaper for fair transfer 2019-09-10 20:33:49 +08:00
Joesis e7738d03db Always stop timer in Stream.Read
Resolves https://github.com/xtaci/smux/issues/52
2019-07-09 19:01:50 -07:00
xtaci afb2f3110f add a span-like allocator without zeroing of slices 2019-05-14 13:54:25 +08:00
xtaci 12e6c1b382 add a line of comment 2019-05-14 11:08:51 +08:00
xtaci 2c8add414c proper error handling 2019-05-13 21:33:06 +08:00
xtaci 3752dae3e1 proper error handling in smux 2019-05-10 14:24:45 +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 8a71918d00 copy directly into bytes.Buffer without a tmp buffer 2019-04-08 15:47:16 +08:00
xtaci b45c894069 fan in writeFrameInternal 2019-03-24 18:40:36 +08:00
auxten adfc81dd78 Add Stream.GetDieCh which returns a readonly chan to get notified when the stream is to be closed 2018-12-05 11:24:20 +08:00
auxten d3b4611595 Expose Stream.die to Stream.Die for canceling running golang RPC func 2018-12-04 12:14:14 +08:00
xtaci b993df6776 simplify header handling 2018-09-28 19:40:24 +08:00
zero d502b06712 fix bug: read 0 bytes from a stream will block forever 2018-01-04 17:07:39 +08:00
Artyom Pervukhin 99d8597e59 Replace d.Sub(time.Now()) with time.Until(d) 2017-12-13 12:00:10 +03:00
xtaci ebec7ef257 adjust read after close behavior https://github.com/xtaci/smux/issues/23 2017-07-01 21:47:59 +08:00
xtaci 1e5d8c0c13 prealloc slice 2017-03-21 13:42:08 +08:00
xtaci cceb67beeb rename cmdRST->cmdFIN to clear up misunderstanding 2017-02-16 14:47:34 +08:00
xtaci 42fea0a26c update comments 2017-01-12 14:21:19 +08:00
zhuyie 6dd5c5cee8 Add Stream.ID 2016-12-16 11:31:45 +08:00
Ox Cart f28ad86390 Fixed deadlock on concurrent closing 2016-11-29 07:28:40 -06:00
xtaciandGitHub 61f5ae8edd Merge pull request #7 from AudriusButkevicius/addrs
Add {Local,Remote}Addr
2016-11-12 18:17:54 +08:00
Audrius Butkevicius 7368f64338 Add {Local,Remote}Addr 2016-11-12 07:30:32 +00:00
Audrius Butkevicius 8510e3505d Add WriteDeadline 2016-11-12 07:25:04 +00:00
xtaci 60c611f2ff return io.EOF when cmdRST arrives 2016-11-08 22:17:32 +08:00
xtaci ee8b5b54eb 64bit atomic operations are not guaranteed on 32-bit cpu, replace with
atomic.Value
2016-11-01 22:42:55 +08:00
Ox Cart f46f1e9066 Added ability to set read deadline 2016-11-01 07:52:27 -05:00