Commit Graph
100 Commits
Author SHA1 Message Date
xtaci e49bf232c4 more accurate on writable events trigger 2019-09-22 17:22:02 +08:00
xtaci a2bf128d43 more accurate write block 2019-09-10 22:01:16 +08:00
xtaci 46b7e46177 cannocial interface 2019-08-08 12:33:24 +00:00
xtaci 78590351ea let SetDSCP invoke the conn's SetDSCP function if there is any 2019-08-08 12:29:23 +00:00
xtaci b8cc8a83fb fix windows compatibility in setsockopt 2019-07-18 16:35:52 +08:00
xtaci 4b6ad7e691 set dualstack DSCP 2019-07-15 21:30:21 +08:00
xtaciandGitHub db722ec0b5 Update README.md 2019-07-02 10:54:19 +08:00
xtaci aba76787a5 bug fix 2019-06-11 15:27:26 +08:00
xtaci 3a4bcb9bae fix sendmmsg/recvmmsg compatibility issue for old linux kernel 2019-06-11 13:56:56 +08:00
xtaci 09348110eb add NewConn3 2019-06-04 09:29:07 +08:00
xtaci cf683954a2 move currentMs() to kcp.go 2019-06-01 18:23:55 +08:00
xtaci f461a5b74d fix 2019-05-23 23:58:16 +08:00
xtaci 5e990bd411 safer conversion 2019-05-23 23:56:01 +08:00
xtaci c749e12021 enlarge paws border 2019-05-23 22:41:45 +08:00
xtaciandGitHub b1dff5c9b1 Update README.md 2019-05-17 12:32:34 +08:00
xtaciandGitHub 5a48df8283 Update README.md 2019-05-17 12:28:43 +08:00
xtaciandGitHub 320b369a64 Update README.md 2019-05-17 10:05:27 +08:00
xtaciandGitHub 7285aef504 Update README.md 2019-05-17 10:03:10 +08:00
xtaciandGitHub d68de25721 Update README.md 2019-05-16 21:13:50 +08:00
xtaci 5a8390a53f add an echo example 2019-05-16 20:51:39 +08:00
xtaci 19f7e2e17a upd comments 2019-05-16 17:33:48 +08:00
xtaci e2adf8df36 upd comment 2019-05-16 17:09:57 +08:00
xtaci 9a7974d233 add overview comment for package 2019-05-16 13:35:08 +08:00
xtaci b72f21590b comments 2019-05-16 13:08:14 +08:00
xtaci 98c5c61007 add some comments 2019-05-16 12:43:50 +08:00
xtaci 49cb73af81 rename var 2019-05-13 21:50:55 +08:00
xtaci c30986f46b move heavy ops out of sync once 2019-05-13 21:28:46 +08:00
xtaci 7ad4102a08 correct counting 2019-05-12 20:17:16 +08:00
xtaci 527f3f2771 remove 2019-05-12 20:06:07 +08:00
xtaci 0eea5d5e2e do not close socket in synchronized sending 2019-05-12 18:38:56 +08:00
xtaci 50b172793c recap 2019-05-12 18:02:35 +08:00
xtaci e915e38f55 use session's bconn 2019-05-12 17:56:58 +08:00
xtaci 76c97ed244 sychronized batch output 2019-05-12 17:51:12 +08:00
xtaci dd2b152d8c add uncorkInternal for control of batchSize 2019-05-12 17:21:56 +08:00
xtaci 34e72e0fd6 recycle buffer 2019-05-08 22:40:03 +08:00
xtaci f0ee7b5847 proper error handling 2019-05-08 22:38:06 +08:00
xtaci f0e07abcce close opened conns in tests 2019-05-08 21:53:41 +08:00
xtaci 8078536338 upd tests 2019-05-08 21:39:09 +08:00
xtaci c340cca9d7 fix 2019-05-08 21:09:47 +08:00
xtaci 39bfc772c5 len->cap 2019-05-06 13:25:40 +08:00
xtaciandGitHub f11459395f Update README.md 2019-05-06 01:22:57 +08:00
xtaciandGitHub 88b8a1475b Xtaci patch 1 (#119)
* Add files via upload

* Update README.md
2019-04-27 10:12:30 +08:00
xtaci 23759369cb same logic applied to fec queue 2019-04-27 09:51:26 +08:00
xtaci 8c3db6588a optimization in slice front element deletion 2019-04-26 22:22:16 +08:00
xtaci ced944ffc2 revert back the network type detection 2019-04-23 20:09:51 +08:00
xtaci 01adef1dd5 omit the data copying before headerOffset 2019-04-20 20:36:11 +08:00
xtaci 381f54c9f3 fix time comparsion on edge 2019-04-15 13:36:56 +08:00
xtaci 0be661ec07 reuse time.Timer object instead of creating repeatedly 2019-04-13 20:41:36 +08:00
xtaci 158a924ca6 fan in WriteBuffers 2019-04-10 10:53:51 +08:00
xtaci 7c104a5443 add WriteBuffers function to send a vector of slice in batch 2019-04-07 21:56:50 +08:00
xtaci 59b7c4b915 add a line of comment 2019-04-06 12:48:36 +08:00
xtaci b44d869cfd prevent reedsolomon decoder from allocating memory 2019-04-01 21:25:46 +08:00
xtaci 37896589aa add methods to []byte instead of creating new structure 2019-04-01 20:58:36 +08:00
xtaci ad46754387 remove unnecessary setting of default mtu 2019-03-22 18:23:36 +08:00
xtaci df934f8a92 fix default mtu 2019-03-22 18:22:39 +08:00
xtaci 4149bfc8ed rename func to ReserveBytes 2019-03-22 13:40:30 +08:00
xtaci 83e13d2c1f fan in makeSpace in flush() 2019-03-22 13:32:36 +08:00
xtaci fc8dfa739f rename keep->reserved 2019-03-22 13:10:04 +08:00
xtaci bcef39b34f bugfix in empty data 2019-03-22 02:22:31 +08:00
xtaci 44234c04ed bugfix in sending remainning 2019-03-22 01:56:54 +08:00
xtaci 6fed5a993f add a comment for seg.acked 2019-03-22 01:35:17 +08:00
xtaci 80999c73e7 allocate precise buffer size in kcp 2019-03-22 00:53:13 +08:00
xtaci cab6e2361d changing mss relates to keep in SetMtu() 2019-03-22 00:30:09 +08:00
xtaci 8d72ee9256 KeepHead fix mss too 2019-03-22 00:18:39 +08:00
xtaci 852dbe4559 avoids bytes copying from kcp.flush to output function 2019-03-21 23:34:57 +08:00
xtaciandGitHub d4291579b8 Update README.md 2019-01-22 21:29:29 +08:00
xtaci 2e7567b77e adjust tests,avoid overflow of netdev 2019-01-09 23:17:17 +08:00
xtaci 4230b8dad3 avoid atomic in lock in Read() by spliting 2019-01-09 21:53:39 +08:00
xtaci c86b101232 add support for ipv6 traffic class 2019-01-09 17:14:12 +08:00
xtaci 3285de2bc2 listen address match to remote addr 2019-01-09 17:10:47 +08:00
xtaci c6832b33bc incoming src address binding 2019-01-09 16:22:45 +08:00
xtaci 15933da221 removed connected udp for simplicity, and added a addr check 2019-01-09 00:59:15 +08:00
xtaci aec676c973 Merge branch 'writeTo' 2019-01-09 00:42:12 +08:00
xtaci 4cf02600ed avoid unnecessary calculation 2019-01-09 00:13:04 +08:00
xtaci 9be9a335bb use latest ack as rtt compute and simpify logic 2019-01-08 22:14:11 +08:00
xtaci 2ee8f10cc2 remove var 2019-01-08 21:08:55 +08:00
xtaci 56b1ee3a01 WriteTo directly 2019-01-08 18:40:53 +08:00
xtaci 2e93812c29 init chan 2019-01-08 17:11:26 +08:00
xtaci 51bf4558dd let Write() aware of network change 2019-01-08 16:37:13 +08:00
xtaci 46244179af no need to manual recycle hi-freq data 2019-01-04 15:36:02 +08:00
xtaci 2b63a96de5 make parse_ack recycle data immediately 2019-01-03 22:24:17 +08:00
xtaci 9b1a6052ee make delSegment idemopotent 2019-01-03 22:21:56 +08:00
xtaci 2dc62d87e1 bug fix 2019-01-03 22:20:20 +08:00
xtaci 28a058e313 no need to condense the queue by ACK, snd_una will catch up
eventually, save cpu
2019-01-03 22:04:19 +08:00
xtaci 8b6efebcb9 more precise check of fastack 2018-12-30 17:29:36 +08:00
xtaci 5193a2f882 fix time compare 2018-12-29 12:09:23 +08:00
xtaci 8ea04b0852 fix time compare 2018-12-28 22:41:06 +08:00
xtaci af45077937 remove the threadlock 2018-12-28 20:42:53 +08:00
xtaci 1590b0c4f6 fix too much retransmit on fast ack 2018-12-28 17:49:08 +08:00
xtaci ef686d20e4 reorder 2018-12-28 12:36:20 +08:00
xtaci f8d53032b8 Revert "always push the ack for later determination"
This reverts commit 8d7374432f.
2018-12-28 01:37:35 +08:00
xtaci 8d7374432f always push the ack for later determination 2018-12-27 22:56:01 +08:00
xtaci 2500c38813 lint 2018-12-27 15:05:38 +08:00
xtaci 52ed292bb2 del all halfway bufs, for a stable stream processor, minized jitters 2018-12-26 22:56:12 +08:00
xtaci 62a110c3c5 if wnd too large while buf small, sometimes krnl w drop pkts, adjust tests 2018-12-25 15:38:26 +08:00
xtaci cf8866d478 delayed data content repliation 2018-12-24 20:26:12 +08:00
xtaci 1b01745940 pin updater to thread for better localiaty while sending 2018-12-24 19:57:55 +08:00
xtaci a8031dc627 shorten RepeatSeg counting code 2018-12-24 13:43:11 +08:00
xtaci 4edc140ef3 adjust RepeatSegs stats 2018-12-24 12:16:10 +08:00
xtaci 02d11d20c5 fix the bug in issue #106 2018-11-14 23:35:53 +08:00