github.com/tokio-rs/tokio-core
I/O primitives and event loop for async I/O in Rust
https://github.com/tokio-rs/tokio-core
9cd80f1cbde523c7677c5d9887b8d470510084f9 authored about 8 years ago
Update tokio-core with new task system
d23c1a2b98b367d3c06637da9cfb240615bb7c61 authored about 8 years ago16d15520adbf496b2effaf89109667e5dc0838a0 authored about 8 years ago
Expose TCP socket options
0be8eab2609bb949ac0d8b4c4189ca3a5b1707a0 authored about 8 years ago7acffe478566438c6672600f7d272626a3cc8c5f authored about 8 years ago
42f73cb0ecb7975cb0eaa76a4e0f96a949f32846 authored about 8 years ago
Support POSIX AIO, post-01635df . A concrete implementation will be
added by the mio-aio and to...
Add PollEvented::poll_ready
01635dfd56442c43f6b362ca3baf8868b1745ffc authored about 8 years ago
This commit adds a general-purpose method for querying the readiness of a
`PollEvented` type. Th...
b92fd2d22adc71b314051673c28715b23806f86f authored about 8 years ago
typo fix
9e80c82400b68d89b41ab7f8f82b527f1ca7a3cb authored about 8 years ago4d8d29391338f665b68f2210aa1664bad47cda24 authored about 8 years ago
small typo fixed for io module
d723faf2d8d144b2884424f53e9201f70d52d2dc authored about 8 years ago5567ec904e75ee5e0357c1e33f7e42b0acf73b53 authored about 8 years ago
98e99c71c4903293875059510dea7e8896ff85e5 authored about 8 years ago
011a7b02f70cbd29ce20bdf6ed8858117b616027 authored about 8 years ago
drop inner borrow before dropping task
05191f14d79999700e9ec9252c3e6a1ef88b97e3 authored about 8 years ago0cfa98566ec6c53892b812e897f6fd6aa5cda413 authored about 8 years ago
Update links to pages in the tokio.rs going-deeper section
4545110f451a3f8df298916f323c2a5b43cce7cf authored over 8 years agoSee: tokio-rs/website#72
31114431136931456beb8ceb57da01de2156f68a authored over 8 years ago29144e6c9bb4165df31a319f0b30d72ae690366a authored over 8 years ago
Fix logic error in TcpStream.read_buf()
8d58b70ce61cb077e7b68fd1f7bbdfed8aba6722 authored over 8 years ago
If the underlying read_bufs() call returned a WouldBlock error,
TcpStream.read_buf() was erroneo...
Closes #194
45e69bfb61d5638cd89b8ed0c2808738a9c8802b authored over 8 years ago
Otherwise we may accidentally hold the borrowed ref cell for too long which can
cause a borrow e...
8383e8bf7ab972daaaa502c2aea73577c3bda3db authored over 8 years ago
c80953f0783c7fa43e1b751b0caca236bb928791 authored over 8 years ago
I believe this happened due to a very recent rustc soundness fix!
Closes #189
8c1838e0934d1b7f0675fb4fa62eb3898f4f6ec7 authored over 8 years agoe79f6654406a4f037a5f62db1aba09fe0d1344f4 authored over 8 years ago
a8e09c5608381907e8597609387cfff83901467d authored over 8 years ago
Deprecate the existing `io` module in this crate entirely.
More details coming soon!
Closes #61
89fcc96dd44bff0ba85432d96a3a8f5b20adc94e authored over 8 years agocomment rewording
8fecf98aef1bb2f4f37303c44b2a51126b9c54ff authored over 8 years agoReplace magic numbers with constants from mio
b0d04e04f2ebddc596d38ae62e29e576107a6d08 authored over 8 years agoa67e0d3efb93cb2bcf619417bdccdf8e89532614 authored over 8 years ago
eb66ff3ad1706b0206363db80a321a6c948505b3 authored over 8 years ago
Closes #170
5c411c548b32e1668dd4712c05e62ef24ba0fcc8 authored over 8 years ago3b8f1695ff7f9fa4d6fed42b98213a34a26a6fb9 authored over 8 years ago
fix typo in reactor::Core::run docs
bd75a522c3d58c09b67d5ae2942e085918b599cb authored over 8 years ago1722d8ed45a654e40034360b0984c2248326a9a8 authored over 8 years ago
Fix typo in docblock for Core::run()
6a4df9a3b67bfe39543174162e55dc1212f2c863 authored over 8 years agoe8bd2117d03e35664643773c51b77e056bba75bd authored over 8 years ago
b773d554449b7edb2cc67bc014aa9c135e809777 authored over 8 years ago
Implement Debug for PollEvented<E> if E implements Debug
005994cdeae7de81b4bc1e0de8346115181a5ec7 authored over 8 years agoUseful, esp since mio::unix::EventedFd already implements Debug.
Signed-off-by: Andy Grover <ag...
9e3f3caad06fa89ab8ad25f5260f7512d22e8e00 authored over 8 years agoAdd PartialOrd, Ord, and Hash to EasyBuf, generalize PartialEq.
6c774756e65f3eda72d2e6f0771141af2876fef0 authored over 8 years agoRename sender in connect example
a3c1796a452ed5502a65bb40f2982bf85cd4e5fc authored over 8 years agoc9a8208c8a855a9417eabfab4f00551dcfab0c82 authored over 8 years ago
54dcd3a015bb61eb7f297da69f2ad978425c488d authored over 8 years ago
Implement PartialEq for EasyBuf
1bc2ef6affe2828604b488d39b1618a8f2b5edb6 authored over 8 years agofe9a798811524fc355265182e3eb04ddf60a3e91 authored over 8 years ago
Allocation in get_mut() always uses 8 * 1024 bytes
a597b962a34930e4e1091baf06308e2ae32131ac authored over 8 years ago
* if remaining bytes are smaller then 8 * 1024, allocate 8 * 1024
* otherwise allocate as much a...
We now have enough capacity to copy the unconsumed portion
of the previous frame.
The previous implementation would always use the capacity
of the previous buffer, which would ef...
impl Into<Vec<u8>> for EasyBuf (cf. #120)
574b6f0c54f5818d08921fed0af85a499f0d8e14 authored over 8 years agob4cd223476a55cda3251d1fd9119434ec61488d2 authored over 8 years ago
f86addf113310b903281e32a82ef2a73d5986aa5 authored over 8 years ago
rename sock -> listener in docs
a4017ee84654ebe78d81d4ba8cb0a675c4748f10 authored over 8 years agoMakes it much clearer for someone fairly new to rust (like me) to follow along when the same nam...
8a360f87f505b0357343b39280c5fe7b022e5f41 authored over 8 years agoFix typo in non-doc comment in copy.rs
cecaad715df67f7b61664cf316fccaf97b51e493 authored over 8 years agoe31b76c047c21e0ac0112e41f60d25b5c7c8810c authored over 8 years ago
add read_bufs and write_bufs to Io and TcpStream
05f01d6c9bfa113b737303a632a0440b6933cba6 authored over 8 years ago829563ccfc566997bd90141c4d34b3b68fb17e5b authored over 8 years ago
Fix typos
cf74a6b2c9a227e66deb6f03eb662a87399a7f47 authored over 8 years agobaeb35b6d42765f283170002da477a3d72c75b36 authored over 8 years ago
a4b4d57cb78b621b7108bd540f701c83805fdb23 authored over 8 years ago
Add from_stream method
4363663deaf5b1b23842561ea9be4fe35cd22bda authored over 8 years agoc1f1320203c7c5124bdd7684fae18dd48506d3a5 authored over 8 years ago
5b425dfed999e4c3188c7c8f573bae3b0d618c5e authored over 8 years ago
fcdeb0e5d677e2791635780fb7d3f2f552e51e45 authored over 8 years ago
75fe37bc8cbb54672ca59dfc5f6d3f32699f892c authored over 8 years ago
c9d0fe59ddebc8e6aaabcacb97f086330692eb56 authored over 8 years ago
Intended for fast paths which can be a little more optimized for when they're
run directly on th...
e69b67fcfe29a28fb7980694c0379ad98139bb99 authored over 8 years ago
Debug format looks like this for small resp. long buffers
EasyBuf{len=2/6 [5, 6]}
EasyBuf{len=2...
Provide a publicly-accessible Core ID
e8d4524586e4a3352bfd657641b144c8fa5dfea2 authored over 8 years ago
Allow distinguishing between multiple `Core`s and associating data with
them through a `HashMap`...
UDP Codec Example Tweaks
9fe0bc19076a52c6e68858febb473059a130dc3d authored over 8 years ago0c553f958aa32e2ec462b541e29d5154bd9c237b authored over 8 years ago
e502603532fe2c76c8c584a71660df87bfa121c7 authored over 8 years ago
Closes #143
d0833074d6c47970b69baf69702c92a497c93fc2 authored over 8 years agoc47c445be6e20b49c3382ca6f59be5e9a4044946 authored over 8 years ago
28ace4d33c70b128332f7ab1132bb4abb33a7176 authored over 8 years ago
1985eae7f53083c7fda5e38c28720cc1a70a7550 authored over 8 years ago
f77fe7d3b5c4ec7c7fe8ae726fcc3f6d47aaec1c authored over 8 years ago
9294b1345cdbf078ce089cf61e57906bacdec7db authored over 8 years ago
Docs: Remove outdated reference to `task::poll_on`
c61d3bc71eeb72fc445eb1d1817efeccb8ece718 authored over 8 years ago372d55ce0b745580f4f1552b23dadcc2ea221d01 authored over 8 years ago
28104710354bfe2ad8710370c5d5ee6482af7493 authored over 8 years ago
76c3e162b702c5a654fd22f1597266fcd81d188b authored over 8 years ago
64c360c30ebfadc8b5333206482a78d4f62975f4 authored over 8 years ago
2499dd35a2517690fbf7ec8e14e5522c1c9ae50f authored over 8 years ago
Update the use of deprecated APIs
4eb036d3f67d284e71e789560608ad189cdd4611 authored over 8 years agoFor stuff that moved from futures::task to futures::executor
e5bbf004d351f9829c192f792db7311ef88ab8ce authored over 8 years agoFix typo.
ff7fcd1074c084c190fd0af9991cdaa5daed60c6 authored over 8 years agoUse `io::Result`
ae314245dc321157ad38b789e3d17abf455c3cb4 authored over 8 years ago58913c80a3ba4f48565793b6a3165ff2aaa2343f authored over 8 years ago
5929a59aca525b3f10b23cbcb384ff73a382ad1e authored over 8 years ago
717e99ca80ae57820f4dbe7574421afd28d9f1d9 authored over 8 years ago
99078c5cc152af007922901384e0fe7bb0b57184 authored over 8 years ago