Thomas de Zeeuw
803573fa28
Replace IRC channel with Gitter ( #1069 )
...
The Mozilla IRC network is being shutdown, see
https://blog.rust-lang.org/2019/04/26/Mozilla-IRC-Sunset-and-the-Rust-Channel.html
and http://exple.tive.org/blarg/2019/04/26/synchronous-text .
2019-08-29 11:56:08 -07:00
Carl Lerche
017d018d75
try fixing ci again
2019-08-27 18:44:28 +00:00
Carl Lerche
d6edcd13fd
fix CI
2019-08-27 18:44:28 +00:00
Carl Lerche
092d6fdc7d
fix clippy
2019-08-27 18:44:28 +00:00
Carl Lerche
5a5b5f7d43
include testing --release in CI
2019-08-27 18:44:28 +00:00
Carl Lerche
29fd58deda
Fix size test
2019-08-27 18:44:28 +00:00
Carl Lerche
19d5ebe61c
misc cleanup
...
* split up TCP files into stream / listener
* organize import order
* split up misc other files
2019-08-27 18:44:28 +00:00
Thomas de Zeeuw
3550494f0b
Use consistent use statement order
2019-08-23 10:16:30 +00:00
Thomas de Zeeuw
72a001a8e3
Use Selector::try_clone in kqueue::Waker
...
Removing the special Selector::try_clone_waker method.
2019-08-23 10:16:30 +00:00
Thomas de Zeeuw
e739790cb8
Add a test for polling with zero duration ( #1065 )
...
This ensures that the relevant system call is made even if the passed
duration is zero.
2019-08-21 19:35:13 -07:00
PerfectLaugh
e054a7d587
Fix issue in #1062
2019-08-21 12:21:47 +00:00
PerfectLaugh
4276d071e3
Reverts two issues
...
This reverts commit 9dc562ca0f9c2a260a3e2e953a5a636103d8a903.
2019-08-21 11:26:00 +00:00
PerfectLaugh
d07989a3b8
Make is_read_hup detects AFD_POLL_DISCONNECT
2019-08-21 11:26:00 +00:00
PerfectLaugh
c7674d64ad
Add test in pr #1065
2019-08-21 11:26:00 +00:00
PerfectLaugh
d7fa70644f
Fix udp issue in #1062
2019-08-21 11:26:00 +00:00
PerfectLaugh
588e808576
Changed as requested
2019-08-21 11:26:00 +00:00
PerfectLaugh
1dd6000a6d
Recover non-blocking connect and bind
2019-08-21 11:26:00 +00:00
PerfectLaugh
2653117b84
Fix several flags handling
2019-08-21 11:26:00 +00:00
PerfectLaugh
5de1317418
Refactored InternalState, improved select timeout handling and AFD flags fixes
2019-08-21 11:26:00 +00:00
PerfectLaugh
bbc2f774c9
Improve afd_group locks
2019-08-21 11:26:00 +00:00
PerfectLaugh
6b810629c3
Changes RefCell to UnsafeCell
2019-08-21 11:26:00 +00:00
PerfectLaugh
4dc7bae2a0
Comply with rustfmt
2019-08-21 11:26:00 +00:00
PerfectLaugh
7b06041b4c
Test without timeout
2019-08-21 11:26:00 +00:00
PerfectLaugh
fbecef6684
Test with extended time length.
2019-08-21 11:26:00 +00:00
PerfectLaugh
b60218d9b2
Cancel ignore of test_registry_behind_arc
2019-08-21 11:26:00 +00:00
PerfectLaugh
c6d88a5810
Fix for https://github.com/tokio-rs/mio/issues/1041#issuecomment-519674615
2019-08-21 11:26:00 +00:00
PerfectLaugh
8e0b0364ab
Temporary fix for https://github.com/tokio-rs/mio/issues/1041#issuecomment-519674615
2019-08-21 11:26:00 +00:00
Thomas de Zeeuw
3626fdd2e5
Rename Interests::and to Interests::add
2019-08-20 16:45:33 +00:00
Thomas de Zeeuw
ce66285747
Make Interests::is_* methods constant
2019-08-20 16:45:33 +00:00
Thomas de Zeeuw
7f7c62de8d
Add Interests::and
...
This allows adding two interests together, much like the BitOr
implementation, but is a constant function.
2019-08-20 16:45:33 +00:00
Thomas de Zeeuw
fd38052231
Test cleanups ( #1063 )
...
* Move double register test into poll's test module
Reduces the output size.
* Replace custom port selection by using port 0
Port 0 is selection as it tells the OS to use any port available,
perfect for our use case.
* Move smoke tests into poll test module
* Make all Sync and Send assertions uniform
Moves them all to the top of the tests files and uses the same function
name. In addition this also checks if Waker is Send and Sync.
* Start each test with calling init
Now also doesn't ignore the possible error return by env_logger.
2019-08-20 08:25:44 -07:00
Thomas de Zeeuw
e134e798d8
Add a regression test for issue 776
2019-08-19 19:09:36 +00:00
Thomas de Zeeuw
eee0a9f10a
Small cleanups in poll module
...
Also fixes a small type-o.
2019-08-19 19:09:36 +00:00
Thomas de Zeeuw
9ae6ee58b4
Test with minimal versions on CI
2019-08-19 15:56:04 +00:00
Thomas de Zeeuw
0b81ecb175
Change checking source back to cargo check
...
It should be faster.
2019-08-19 15:46:35 +00:00
Thomas de Zeeuw
e0be6e4fb3
Rename Linux targets that actually use Android
...
Also removes the Linux_ARM target as it is the same as the Android target.
2019-08-19 15:46:35 +00:00
Thomas de Zeeuw
9a246b632e
Fix FreeBSD i686 target CI
...
By adding the target (via rustup) before testing.
2019-08-19 15:46:35 +00:00
Carl Lerche
d43717e44c
Add more CI targets for cross compilation
...
This should hopefully catch most errors related to secondary platforms.
2019-08-19 15:46:35 +00:00
Thomas de Zeeuw
2c0ecd2dbf
Update Bytes to v0.5 (unreleased)
...
As bytes v0.5 is not yet released we'll use the git version (using a
fixed commit to reduce breakage).
2019-08-19 15:43:43 +00:00
Thomas de Zeeuw
59443cd224
Remove poll interruptible ( #1056 )
...
Poll::poll is changed to not retry the system call if is its
interrupted.
Removes Poll::poll_interruptible as Poll::poll now does this.
2019-08-19 08:18:49 -07:00
Thomas de Zeeuw
51e1c4587f
Disable test_registry_behind_arc on Windows
...
On Windows concurrently polling and register doesn't work.
2019-08-13 22:30:56 +00:00
Thomas de Zeeuw
200aaa7a2c
Remove repr(transparent) from Registry and Poll
...
It is no longer needed.
2019-08-13 22:30:56 +00:00
Thomas de Zeeuw
6072de2b84
Remove Deref<Registry> from Poll
...
And revert back to using Poll::registry.
2019-08-13 22:30:56 +00:00
Thomas de Zeeuw
6668d44d3b
Add writable interests in test_registry_behind_arc
...
Hopefully this will create an event on Windows.
2019-08-13 22:30:56 +00:00
Thomas de Zeeuw
254e537e22
Fix unused mut warning
...
Strange that rustc didn't warn, but clippy does.
2019-08-13 22:30:56 +00:00
Thomas de Zeeuw
fe5d6caed7
Add test for use of Registry behind an Arc
2019-08-13 22:30:56 +00:00
Thomas de Zeeuw
14c049b923
Remove Arc from Poll and Registry
...
And add back register, register and register to Poll.
2019-08-13 22:30:56 +00:00
Thomas de Zeeuw
f30debef5c
Remove net2 dependency ( #1029 )
...
Removing the need for the net2 crate.
On Unix platforms (expect for iOS, macOS and Solaris) this reduces the
number of system calls from four to two, on iOS, macOS and Solaris this
reduces it to three system calls.
# Windows net initialization
The standard library calls WSAStartup for us, ensuring (with an assert)
that the return value is ok. This means that we can't initialise it
ourselves and need to let the standard library do it for us. To work
around this we create and drop a UdpSocket (from std::net).
2019-08-13 10:02:58 -07:00
Thomas de Zeeuw
2f688de26c
Add UdpSocket::peek(_from) methods ( #1052 )
2019-08-07 15:32:12 -07:00
PerfectLaugh
211223e928
Improve overlapped deallocation strategy and docs ( #1042 )
2019-08-07 12:09:20 -07:00