Commit Graph
259 Commits
Author SHA1 Message Date
Alex Crichton e8d4524586 Merge pull request #149 from vorner/loop_id
Provide a publicly-accessible Core ID
2017-01-18 15:33:55 -08:00
Michal 'vorner' Vaner 8d02a1c2b6 Provide a publicly-accessible Core ID
Allow distinguishing between multiple `Core`s and associating data with
them through a `HashMap` or similar.
2017-01-17 22:09:31 +01:00
Alex Crichton 9fe0bc1907 Merge pull request #145 from azdle/udp-codec-tweaks
UDP Codec Example Tweaks
2017-01-15 10:17:57 -08:00
Patrick Barrett 0c553f958a return implicitly (rather than both explicitly and implicitly) 2017-01-14 13:00:46 -06:00
Patrick Barrett e502603532 use the 'Out' type in encode rather than copy/paste 2017-01-14 12:59:22 -06:00
Alex Crichton d0833074d6 Move from a custom channel to futures::sync
Closes #143
2017-01-11 11:35:45 -08:00
Alex Crichton c47c445be6 Add some docs links and such 2017-01-11 09:47:12 -08:00
Alex Crichton 28ace4d33c Update docs/homepage link 2017-01-11 09:21:01 -08:00
Alex Crichton 1985eae7f5 Point to tokio.rs 2017-01-11 09:14:50 -08:00
Alex Crichton f77fe7d3b5 Allow a bit of sloppiness in the timeout test 2017-01-10 16:14:54 -08:00
Alex Crichton 9294b1345c Touch up some docs in tokio-core 2017-01-10 10:02:15 -08:00
Alex Crichton c61d3bc71e Merge pull request #144 from critiqjo/docs-fix
Docs: Remove outdated reference to `task::poll_on`
2017-01-09 21:19:10 -08:00
critiqjo 372d55ce0b Docs: Remove outdated reference to task::poll_on 2017-01-10 10:09:47 +05:30
Alex Crichton 2810471035 Update docs to docs.rs 2017-01-09 16:40:16 -08:00
Alex Crichton 76c3e162b7 Bump to 0.1.3 2017-01-06 11:39:38 -08:00
Alex Crichton 64c360c30e Touch up TcpStream::connect and revert breaking change 2017-01-06 11:37:46 -08:00
Alex Crichton 2499dd35a2 Merge branch 'master' of https://github.com/alreece45/tokio-core 2017-01-06 11:30:18 -08:00
Alex Crichton 4eb036d3f6 Merge pull request #141 from critiqjo/depr-fix
Update the use of deprecated APIs
2017-01-05 09:32:34 -08:00
critiqjo e5bbf004d3 Update the use of deprecated APIs
For stuff that moved from futures::task to futures::executor
2017-01-05 20:41:36 +05:30
Alex Crichton ff7fcd1074 Merge pull request #140 from SirVer/patch-1
Fix typo.
2017-01-04 08:43:00 -08:00
Alex Crichton ae314245dc Merge pull request #139 from sinkuu/use_io_result
Use `io::Result`
2017-01-04 08:42:10 -08:00
Holger Rapp 58913c80a3 Fix typo. 2017-01-04 16:49:33 +01:00
sinkuu 5929a59aca Use io::Result 2017-01-04 17:47:20 +09:00
Alex Crichton 717e99ca80 Fix connect example 2016-12-20 18:39:44 -08:00
Alex Crichton 99078c5cc1 Touch up comments on echo, add connect example 2016-12-20 17:59:46 -08:00
Alexander Reece 3dd4178bb5 Update TcpStream::connect_stream() to return TcpStreamNew 2016-12-20 20:41:13 -05:00
Alexander Reece 000e9b5ab9 Change TcpStream::new() and TcpStream::connect() to return concrete types. 2016-12-20 20:41:13 -05:00
Alex Crichton 50f007a49b Add #![doc] to crate root 2016-12-19 22:41:41 -08:00
Alex Crichton 7b7b3a817b Merge pull request #131 from sfackler/patch-1
`Encode`/`Decode` -> `Codec` in docs
2016-12-19 22:28:49 -08:00
Steven Fackler 24d941d676 Encode/Decode -> Codec in docs 2016-12-19 22:19:39 -08:00
Alex Crichton b9f7808f6e Bump to 0.1.2 2016-12-19 00:37:27 -08:00
Alex Crichton 0588204048 Merge pull request #128 from aturon/from_vec
Add From<Vec<u8>> and Clone impls to EasyBuf
2016-12-17 14:27:40 -08:00
Aaron Turon 46d68f739a Add Clone for EasyBuf 2016-12-17 14:17:52 -08:00
Aaron Turon 9bb1366f33 Add From<Vec<u8>> for EasyBuf 2016-12-17 14:16:47 -08:00
Alex Crichton ef89def808 Touch up docs of TcpListener::accept 2016-12-16 11:15:34 -08:00
Alex Crichton edf6a57450 Minor tweaks w/ TcpListener::accept 2016-12-16 11:13:08 -08:00
Alex Crichton 68a8f26b40 Merge pull request #106 from dpc/tcplistener-accept
Implement `TcpListener::accept()`
2016-12-16 11:10:20 -08:00
Alex Crichton e0990e8a5a Merge pull request #126 from dwrensha/slab-capacity-one
initialize slabs with capacity of one
2016-12-16 11:07:17 -08:00
Dawid Ciężarkiewicz 1864ecc46f tcp: Express incoming in terms of accept 2016-12-16 11:07:08 -08:00
David Renshaw 7abe6db0ae initialize slabs with capacity of one 2016-12-16 13:37:59 -05:00
Dawid Ciężarkiewicz 936727fa52 Don't block in TcpListener::accept
Instead hold a pending Future of the next `TcpStream`.
2016-12-16 10:35:42 -08:00
Dawid Ciężarkiewicz 38df0d7f0f Implement TcpListener::accept() 2016-12-16 10:35:42 -08:00
Alex Crichton f036691681 Clean up the pipe-hup test slightly 2016-12-08 16:30:18 -08:00
Andreas Rottmann 5bab8e85b9 Handle hup events as indicating read readiness
Using Linux's `epoll(7)` interface, a `EPOLLHUP` condition is
signalled for the reading end of a pipe or socket when the other end
is closed for writing. This may happen in combination with `EPOLLIN`
being signalled (if further data is available for reading), or with
`EPOLLIN`.

If `EPOLLHUP` is signalled without `EPOLLIN` it indicates an immediate
EOF condition, which will result in the next `read()` suceeding with 0
bytes read. It is thus not required to handle `EPOLLHUP` specially in
the reader, but we need to indicate readiness upon encountering it.

Looking at the `kqueue` and `windows` mio backends, they seem to be
turn a detected EOF and connection reset into `mio::Ready::hup()`
events, so it may be reasonable to speculate that this change is an
improvement for these platforms as well.

Fixes #117.
2016-12-08 17:52:40 +01:00
Andreas Rottmann dc27c0a524 Add test for EPOLLHUP without EPOLLIN
Note that this brings in a lot of machinery just for the sake of
wrapping file descriptors as PollEvented. This should maybe be moved
into the public API of some crate.
2016-12-08 17:52:40 +01:00
Alex Crichton 3b38e518ca Bump to 0.1.1 2016-11-22 15:39:13 -08:00
Alex Crichton 7f96b7e9e4 Add some more public exports 2016-11-22 15:36:19 -08:00
Alex Crichton b89150c464 Fixup Result-returning encode method 2016-11-22 15:22:30 -08:00
Alex Crichton e970e9a79c Merge branch 'master' of https://github.com/colindjk/tokio-core 2016-11-22 13:07:01 -08:00
Alex Crichton 1a48b79474 Touch up examples to ensure consistency 2016-11-22 12:35:30 -08:00