Commit graph

48 commits

Author SHA1 Message Date
Nikolay Kim
e30d5c0fa5 Prep ntex release 2024-01-09 22:25:07 +06:00
Nikolay Kim
48eb1c5e54 Update license 2024-01-08 21:32:26 +06:00
Nikolay Kim
29e04cf478
Switch to 2021 edition (#172) 2023-02-02 19:30:07 +01:00
Nikolay Kim
767dd91b7e Fix conversion from BytesVec to BytesMut and back (BytesVec::with_bytes_mut()) 2022-01-31 15:17:16 +06:00
Nikolay Kim
93fe6d9ee8 Prepare release 2022-01-30 20:11:11 +06:00
Nikolay Kim
868c0324f7 Use BytesVec for io 2022-01-30 19:02:29 +06:00
Nikolay Kim
b5750c2e43 Removed unused Decoder::decode_eof() method 2022-01-17 03:03:43 +06:00
Nikolay Kim
eac1f068fb Add optional simd utf8 validation 2022-01-09 19:43:49 +06:00
Nikolay Kim
6698c829fb move mpsc to ntex-util 2021-12-18 20:25:56 +06:00
Nikolay Kim
3dbba47ab1 use ntex-io instead of framed 2021-12-17 09:51:54 +06:00
Nikolay Kim
841ad736d4
Refactor framed io (#67)
* refactor framed io

* allow to add filters

* move io code to separate module

* add into_boxed()

* remove uneeded IO_STOP state

* simplify on_disconnect storage

* cleanup io state

* add io connector
2021-12-13 17:19:43 +06:00
Nikolay Kim
f5d3034e09 fix tight loop in Framed::close() method 2021-09-08 08:34:47 +06:00
Nikolay Kim
6d67cd3458 update changes 2021-06-27 07:17:38 +06:00
Nikolay Kim
630942bc68 clippy 2021-06-26 14:04:49 +06:00
Nikolay Kim
0f796c7642 use ntex-bytes instead of bytes 2021-06-26 00:32:43 +06:00
Nikolay Kim
1bbb31f66c use ntex-bytes 2021-06-26 00:16:26 +06:00
Nikolay Kim
91ee6762e7 move low level utils to separate crate 2021-04-04 01:20:18 +06:00
Nikolay Kim
8b3655457b prep release 2021-04-03 22:49:09 +06:00
Nikolay Kim
cb9e3ffeda reduce futures crate dependencies 2021-04-03 13:25:20 +06:00
Nikolay Kim
8bd63b07b3 Make TestServer::connect() async 2021-02-24 04:50:49 +06:00
Nikolay Kim
e04ae7cc86
Migrate to tokio 1.0 (#41)
* migrate to tokio 1.x

* update tests
2021-02-24 00:12:44 +06:00
Nikolay Kim
c8a229422f prep release 2021-02-20 13:14:13 +06:00
Nikolay Kim
40b0d5e4ab remove unneeded unsafe blocks 2021-02-20 10:39:29 +06:00
Nikolay Kim
6c250c9a4d
Refactor h1 dispatcher (#38)
* refactor h1 dispatcher

* Rename FrameReadTask/FramedWriteTask to ReadTask/WriteTask

* Make Encoder and Decoder methods immutable
2021-01-23 19:44:56 +06:00
Nikolay Kim
20f38402ab Allow to use framed write task for io flushing 2021-01-20 23:40:19 +06:00
Nikolay Kim
715331081c Flush underlying io stream 2021-01-20 23:36:57 +06:00
Nikolay Kim
bf3e8a3de5 tune api docs 2020-09-21 15:11:01 +06:00
Nikolay Kim
9b958a151b Revert "Introduce IoFramed trait"
This reverts commit 0de3647f5d.
2020-09-21 15:07:30 +06:00
Nikolay Kim
0de3647f5d Introduce IoFramed trait 2020-09-21 10:57:32 +06:00
Nikolay Kim
73efebc9c3 Require Debug impl for Error 2020-08-10 23:35:28 +06:00
Nikolay Kim
6a5c7ca553 prep release 2020-08-10 21:09:28 +06:00
Nikolay Kim
5b308709fb return error if bytes remaining on stream 2020-08-10 20:33:29 +06:00
Nikolay Kim
a673632141 clippy 2020-08-10 20:28:41 +06:00
Nikolay Kim
c3ca68dfbd remove From<io::Error> constraint for Sink impl 2020-08-10 17:27:52 +06:00
Nikolay Kim
8a6c476d02 Remove From<io::Error> constraint from Encoder and Decoder traits 2020-08-10 14:04:40 +06:00
Nikolay Kim
e48449c781 update license 2020-07-30 11:08:17 +06:00
Nikolay Kim
deeccb9f60 more logging 2020-07-28 16:40:00 +06:00
Juan Aguilar
d0da3f3ec1
Improve bcodec encode performance (#22)
Remove repeat calls to `reverve` method. Stop treating `item`
since it has the assured drop. Add the inline attribute because the
resulting body is just one line.
2020-07-19 15:50:17 +06:00
Juan Aguilar
2feda6a5ab
Update bytes version to 0.5.6 (#21) 2020-07-17 06:49:45 +06:00
Nikolay Kim
ddb3867252 cleanup tests 2020-05-16 12:37:27 +06:00
Nikolay Kim
7dad057d8c Do not swallow unprocessed data on read errors 2020-04-17 11:16:17 +06:00
Nikolay Kim
d7699b74d7 simplify framed dispatcher states 2020-04-13 09:48:46 +06:00
Nikolay Kim
3b12a77e92
Fix io close (#12)
* Fix io close for Framed
* Fix connection shutdown for h1 dispatcher
* Enable client disconnect for http server by default
* Add connection disconnect timeout to framed service
2020-04-07 21:36:48 +06:00
Nikolay Kim
66fe4e2429 update changes 2020-03-31 10:02:25 +06:00
Nikolay Kim
a440ebb345 cleanup codec::Framed 2020-03-31 10:01:06 +06:00
Nikolay Kim
20a404ed1e rename ntex-macros 2020-03-31 08:52:52 +06:00
Nikolay Kim
7df3cc59a1 merge actix-rt 2020-03-29 14:15:18 +06:00
Nikolay Kim
4ec01db40a merge actix-codec 2020-03-28 21:53:51 +06:00