84 Commits
Author SHA1 Message Date
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
xtaci 6250093011 reduce memory footprint 2016-10-25 14:29:46 +08:00
xtaci 9f2b528a60 fix a potential race in closing stream.die 2016-09-22 18:26:45 +08:00
xtaci f75ca5badb optimize stream.Write 2016-09-08 12:39:57 +08:00
xtaci eacccc2789 lint 2016-09-07 13:45:14 +08:00
xtaci f78c3064f7 lint 2016-09-06 16:23:36 +08:00
xtaci 65fcb35acc optimize sessionClose 2016-09-06 14:54:18 +08:00
xtaci e0ae71df44 optimize split 2016-09-06 11:06:17 +08:00
xtaci 5cba51dca1 upd 2016-09-05 12:06:30 +08:00
xtaci 49d9fc094c move stream buffer into stream 2016-09-05 11:15:29 +08:00
xtaci ede46abcfe Revert "reduce critical area"
This reverts commit 7f7f287315.
2016-09-04 15:15:21 +08:00
xtaci 7f7f287315 reduce critical area 2016-09-04 12:50:08 +08:00
xtaci b2ffd23649 optimize Session.Close() 2016-09-03 23:04:36 +08:00
xtaci 5d4c4e5869 a better fix for rst 2016-09-03 15:38:31 +08:00
xtaci cc7ed53429 fix RST 2016-09-03 13:30:18 +08:00
xtaci 4fe17c2ede reduce alloc 2016-09-03 11:12:49 +08:00
xtaci 05b01ed2c2 optimize stream.Write 2016-09-02 13:51:27 +08:00
xtaci 9f2d448b25 upd parameters 2016-09-02 12:09:55 +08:00
xtaci 1d05a7b82c take back write lock 2016-09-02 10:26:36 +08:00
xtaci d7374b1938 fix for tiny buffer 2016-09-01 18:03:00 +08:00
xtaci ec54792b14 optimize read event 2016-09-01 17:09:39 +08:00
xtaci 6f8177ccd6 optimize recvLoop 2016-09-01 14:30:07 +08:00
xtaci c368df894a upd 2016-09-01 14:24:57 +08:00
xtaci ce925b40aa add a close lock for stream 2016-09-01 12:36:38 +08:00
xtaci b3a5e6f3af remove lockedWriter, it seems write is atomic
https://golang.org/src/net/fd_mutex.go?h=writeLock#L235
2016-09-01 10:59:15 +08:00
xtaci 6a20537690 upd 2016-08-31 23:13:51 +08:00