Alex Crichton
e8617ea1fc
Update futures dependency
2017-08-24 08:16:04 -07:00
Alex Crichton
77d9a1aa4f
Merge pull request #226 from Ralith/udp-dual-stack
...
Expose only_v6 option for UDP sockets
2017-08-17 13:05:31 -07:00
Alex Crichton
6090e22135
Merge pull request #238 from cssivision/master
...
update example in doc comment
2017-08-16 09:04:34 -07:00
cssivision
e5fdccfff0
update example in doc comment
2017-08-16 19:17:12 +08:00
Alex Crichton
fbd257f2bd
Merge pull request #237 from raphlinus/master
...
[fuchsia] Config changes to build on Fuchsia
2017-07-31 18:59:12 -05:00
Raph Levien
05b1ba4342
[fuchsia] Config changes to build on Fuchsia
...
This patch disables various Unix-specific platform features that are
not enabled on Fuchsia. It also updates the mio version to 0.6.10,
which is the first release that supports Fuchsia.
2017-07-31 14:12:53 -07:00
Alex Crichton
77b0ee0a47
Hide the deprecated io
module
2017-07-30 20:49:09 -07:00
Alex Crichton
2a71ef8b13
Merge pull request #236 from manuels/patch-1
...
Add documentation about panics to {Handle, Remote}::spawn{fn}
2017-07-26 11:57:24 -05:00
manuels
d03c736b4c
Add documentation about panics to {Handle, Remote}::spawn{fn}
2017-07-26 17:33:09 +02:00
Alex Crichton
8c297a6208
Bump to 0.1.9
2017-07-24 21:36:19 -07:00
Alex Crichton
8fba4858ac
Merge pull request #231 from guanqun/master
...
typo fix in io_token's comment section
2017-07-12 09:07:23 -05:00
Guanqun Lu
5fe7b4225f
typo fix in io_token's comment section
2017-07-12 13:21:54 +08:00
Alex Crichton
c13e7f3533
Clarify docs on Timeout::reset
2017-06-27 09:55:36 -07:00
Alex Crichton
2653a2195c
Merge pull request #228 from en/reset
...
Add a method to reset Timeout.
2017-06-27 09:52:02 -07:00
Yuanchao Sun
6fb62d3232
Add a method to reset Timeout.
2017-06-27 11:34:56 +08:00
Benjamin Saunders
8004900ce9
Expose only_v6 option for UDP sockets
2017-06-25 22:56:52 -07:00
Alex Crichton
8379b87c53
Merge pull request #224 from seanmonstar/nop-flush
...
make TcpStream::flush() a noop
2017-06-23 18:12:52 -05:00
Sean McArthur
bf93b79120
make TcpStream::flush() a noop
2017-06-23 15:25:25 -07:00
Alex Crichton
d85f54dffb
Merge pull request #219 from ignatenkobrain/patch-1
...
bump env_logger to 0.4
2017-06-16 09:10:23 -05:00
Igor Gnatenko
ddb244429e
bump env_logger to 0.4
2017-06-16 08:41:09 +02:00
Alex Crichton
c65c331767
Merge pull request #210 from asomers/aio5
...
POSIX AIO support, try 2
2017-06-08 14:30:22 -05:00
Alan Somers
363e15f36c
Respond to alexchrichton's comments
...
* Combine the FreeBSD/Dragonfly platform with the other Unix platform
* Remove the Windows platform::aio method
* Update deps
2017-06-07 22:36:32 -06:00
Alex Crichton
562aa65c99
Bump to 0.1.8
2017-06-07 13:29:14 -07:00
Alex Crichton
74670f287e
Merge pull request #215 from tokio-rs/benchmarks
...
TCP reactor benchmarks
2017-05-30 16:00:30 -05:00
Carl Lerche
9cd80f1cbd
TCP reactor benchmarks
2017-05-30 11:23:34 -07:00
Alex Crichton
d23c1a2b98
Merge pull request #214 from alexcrichton/futures-next
...
Update tokio-core with new task system
2017-05-30 10:43:19 -05:00
Alex Crichton
16d15520ad
Update tokio-core with new task system
2017-05-30 08:42:32 -07:00
Alex Crichton
0be8eab260
Merge pull request #213 from tokio-rs/tcp-sock-opts
...
Expose TCP socket options
2017-05-27 12:19:08 -05:00
Carl Lerche
7acffe4785
Expose TCP socket options
2017-05-27 09:37:25 -07:00
Alan Somers
42f73cb0ec
Revert changes to read_ready and add platform::all()
2017-05-21 11:01:48 -06:00
Alan Somers
81beb44565
POSIX AIO support, try 2
...
Support POSIX AIO, post-01635df . A concrete implementation will be
added by the mio-aio and tokio-file crates
2017-05-21 10:24:08 -06:00
Alex Crichton
01635dfd56
Merge pull request #208 from alexcrichton/poll-ready
...
Add PollEvented::poll_ready
2017-05-19 14:29:27 -05:00
Alex Crichton
4dd3d30f2a
Add PollEvented::poll_ready
...
This commit adds a general-purpose method for querying the readiness of a
`PollEvented` type. This new method, `poll_ready`, takes a blanket `mio::Ready`
and tests if any part of it is ready. The purpose of this is to expose
platform-specific events through `PollReady` such as `hup` and `error` events
other than just the platform-agnostic readable/writable events.
The semanatics of this method are:
* The `poll_ready` function takes a mask, and the return value is either
`Async::Ready` with a subset of these events that are ready or `None` if none
of them are ready.
* There can be up to two tasks blocked on a `PollEvented`, so we need to pick
which one is suitable for these new events. Currently all events are routed to
the `read` task unless the writable bit is set. This is mostly only relevant
for multi-task usage or if you're manually calling `need_read` and/or
`need_write`, and hopefully the docs will cover this now.
2017-05-19 11:23:00 -07:00
Alex Crichton
b92fd2d22a
Update to latest mio version
2017-05-19 10:00:57 -07:00
Alex Crichton
9e80c82400
Merge pull request #207 from king6cong/master
...
typo fix
2017-05-12 09:02:10 -05:00
king6cong
4d8d293913
typo fix
2017-05-12 18:00:55 +08:00
Alex Crichton
d723faf2d8
Merge pull request #205 from MarkusJais/master
...
small typo fixed for io module
2017-05-09 16:13:31 -05:00
Markus Jais
5567ec904e
small typo fixed for io module
2017-05-09 21:02:09 +02:00
Alex Crichton
98e99c71c4
Bump to 0.1.7
2017-05-08 16:19:27 -07:00
Alex Crichton
011a7b02f7
Add a test for spawn-in-drop
2017-05-08 16:18:42 -07:00
Alex Crichton
05191f14d7
Merge pull request #204 from fafhrd91/master
...
drop inner borrow before dropping task
2017-05-08 18:17:32 -05:00
Nikolay Kim
0cfa98566e
drop inner borrow before dropping task
2017-05-07 21:17:57 -07:00
Alex Crichton
4545110f45
Merge pull request #201 from munckymagik/update-tokio_rs-links
...
Update links to pages in the tokio.rs going-deeper section
2017-04-25 14:08:49 -05:00
Dan Munckton
3111443113
Update links to pages in the tokio.rs going-deeper section
...
See: tokio-rs/website#72
2017-04-25 19:26:43 +01:00
Alex Crichton
29144e6c9b
Return NotReady
from TcpStream::read_buf
2017-03-27 08:55:30 -07:00
Alex Crichton
8d58b70ce6
Merge pull request #195 from living180/master
...
Fix logic error in TcpStream.read_buf()
2017-03-27 10:54:18 -05:00
Daniel Harding
f5db8136d7
Fix logic error in TcpStream.read_buf()
...
If the underlying read_bufs() call returned a WouldBlock error,
TcpStream.read_buf() was erroneously calling self.io.need_write(), when
it should actually call self.io.need_read().
2017-03-27 16:54:56 +02:00
Alex Crichton
45e69bfb61
Return NotReady
from TcpStream::write_buf
...
Closes #194
2017-03-27 07:33:18 -07:00
Alex Crichton
37e2870f04
Limit the scope of borrow_mut in consume_queue
...
Otherwise we may accidentally hold the borrowed ref cell for too long which can
cause a borrow error.
Closes #190
2017-03-15 22:59:08 -07:00
Alex Crichton
8383e8bf7a
Remove deprecated benchmark
2017-03-15 22:38:23 -07:00