Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/tokio-rs/mio

Metal I/O library for Rust.
https://github.com/tokio-rs/mio

handle_connection_event just needs access to the Registry

3dc8155784c4d6a1044d9b6f82679ab0776660e3 authored about 5 years ago by Mario Lang <[email protected]>
Fix deregistering on Windows

When deregistering a socket make sure it is marked for deletion so it won't be used in poll upda...

d64a303041d0b608d28a29f999874f40bcebabe2 authored about 5 years ago by Tacalau Daniel Stefan <[email protected]>
Wrap kqueue::Events so that it can be Send and Sync (#1130)

Wrap kqueue::Events so that it can be Sync and Send

37401314c63b857d27b199b23a36d1259d3b8c9c authored about 5 years ago by Kevin Leimkuhler <[email protected]>
Add cross platform from_std to net resources

Signed-off-by: Kevin Leimkuhler <[email protected]>

1dd18564fde80155f877daf68503c892003583bb authored about 5 years ago by Kevin Leimkuhler <[email protected]>
Remove some closures

Signed-off-by: Kevin Leimkuhler <[email protected]>

7d088ace3395e0aca0b105555956e81354617ab2 authored about 5 years ago by Kevin Leimkuhler <[email protected]>
Add Windows As(From)(Into)RawSocket traits

Signed-off-by: Kevin Leimkuhler <[email protected]>

d077a1e940ad0204b26be7b5612e1e7bf13c2d03 authored about 5 years ago by Kevin Leimkuhler <[email protected]>
Address review feedback

Signed-off-by: Kevin Leimkuhler <[email protected]>

e59ca758137e994bc864cdfbb6e837a779928ef7 authored about 5 years ago by Kevin Leimkuhler <[email protected]>
Reduce test duplication

Signed-off-by: Kevin Leimkuhler <[email protected]>

91ef103701f909856a94a566c0565ac682efc87f authored about 5 years ago by Kevin Leimkuhler <[email protected]>
Allow clippy lint in test

Signed-off-by: Kevin Leimkuhler <[email protected]>

2bda33f9b058f30ec47f95b9db3cc9368a38334b authored about 5 years ago by Kevin Leimkuhler <[email protected]>
Add more UDP tests

Signed-off-by: Kevin Leimkuhler <[email protected]>

9ec6f0c7e82016d37317a3576f0d96425bcf37b7 authored about 5 years ago by Kevin Leimkuhler <[email protected]>
Remove Arc from TcpStream and TcpListener internal state

Simply not needed. Just like with the UdpSocket internal state.

4b84c9e8c2f6e54d4e3a1b79557feef3648fd8e1 authored about 5 years ago by Thomas de Zeeuw <[email protected]>
Remove Arc from UdpSocket internal state

Simply not needed.

411c21b883ad13f21840b0c8058af6e609190d70 authored about 5 years ago by Thomas de Zeeuw <[email protected]>
Remove AFD_ prefix from event readiness constants

And instead use the module (afd::) as prefix.

Alsoe fixes usage of AFD poll flags, now this fol...

6ee56910b930a3b76517d13e60723f059189ca67 authored about 5 years ago by Thomas de Zeeuw <[email protected]>
Remove update_sockets_events_if_polling

It is now longer needed, now we update the socket events in all cases.

6fc3ba861254a742e09005154e20ebfbfd76a5b2 authored about 5 years ago by Thomas de Zeeuw <[email protected]>
Prefer to use iterators over traditional loops

No chance of an off by one error or index error.

dfd4a0ab0fb509369bf4f1dd474bda91109d8990 authored about 5 years ago by Thomas de Zeeuw <[email protected]>
Change AFD constants to use bit patterns

Now it's easier to see that each constant can be ORed together.

800b786b3e88ec5b63150e43b66dcdb7d40cb25e authored about 5 years ago by Thomas de Zeeuw <[email protected]>
Simplify the locking in SelectorInner on Windows

Rust's mutexes actually have a great API, but that wasn't utilised at
all. This commit changes t...

bb5ef6396241a4f2a87a70b1875f2d17520515d0 authored about 5 years ago by Thomas de Zeeuw <[email protected]>
Box InternalState in Windows sockets

Before this state was allocated in an Arc, but since there was only a
owned of the state it wasn...

ad9d1161d5062f13b2d1ec9833f52839a92f302f authored about 5 years ago by Thomas de Zeeuw <[email protected]>
Cleanup imports in Window's tcp and udp modules

cf10c01d401bacd1b4b382fca330eb8e2da44c6e authored about 5 years ago by Thomas de Zeeuw <[email protected]>
Add a note about safely calling Window's Selector::select

5c1c6c5ea4b187027865a92af27604ca2e12ec72 authored about 5 years ago by Thomas de Zeeuw <[email protected]>
Some cleanup in Window's waker module

This changes Waker to have direct access to the CompletionPort as it
doesn't need access to the ...

fa9247d9a520a25468ca9966ba3a4a4fc198d2ee authored about 5 years ago by Thomas de Zeeuw <[email protected]>
Merge definitions of wouldblock macro

This merge two definitions of the wouldblock, found in the tcp and udp
modules, into a single tr...

3f64e3316958286525e2d8fb4862a38eba001762 authored about 5 years ago by Thomas de Zeeuw <[email protected]>
Move try_io reregistering to a function

Create the io_blocked_reregister function on the TcpStream, TcpListener
and UdpSocket types and ...

70510dafb56989f8b461114fc0935d57c3a1bb40 authored about 5 years ago by Thomas de Zeeuw <[email protected]>
Add no_inline doc attribute to Events

This makes it clear that its a re-export from the event module.

a7026e74753266556816725a2a403f1b283e07b8 authored about 5 years ago by Thomas de Zeeuw <[email protected]>
Remove unneeded clone in UDS tests

ecdc34b1aef190563cbab5bca21727cdddf6d301 authored about 5 years ago by Thomas de Zeeuw <[email protected]>
Fix ttl tests on Windows

On Windows calling setsockopt on an unconnected socket is undefined behaviour. More details can ...

60bf56b0ff35cc8dc29d6a2131126e8c738bf3a3 authored about 5 years ago by Tacalau Daniel Stefan <[email protected]>
chore: better group files by component

Files related to a single component are grouped together in a module.
This was done already for...

34dd84cfcddce0aeef29a29ed70a2c4d80898a83 authored about 5 years ago by Carl Lerche <[email protected]>
Add read_close and write_close readiness events (#1110)

## Motivation

The existing `is_hup` method on `Events` was difficult to add additional checks...

14f37f283576040c8763f45de6c2b2bbcb82436d authored about 5 years ago by Kevin Leimkuhler <[email protected]>
Change UnixDatagram to use the syscall macro

ac7dc4b1d5bce1a320461e3c51738998fde6b5bb authored about 5 years ago by Thomas de Zeeuw <[email protected]>
Fix issues pointed out by Clippy

This makes clippy happy again. Unneeded clone and an exhaustive match of
a return value.

96f0ac8caae413bcb344dad53bc2d743f2823b0f authored about 5 years ago by Thomas de Zeeuw <[email protected]>
Once the UDS echo listener reads 0, do not try to write

This also removes the expectation that a new READABLE event is generated
which should not be the...

e02d41c545e80fc6dd2ab5c2264e53177c3454a3 authored about 5 years ago by Kevin Leimkuhler <[email protected]>
Set Rustup profile to minimal in CI

7981afdc947feaa4d60fa9e065d67caa626245a7 authored about 5 years ago by Thomas de Zeeuw <[email protected]>
Fix comment typo

162cdd3868742ed494ba03e7c843708eebd6849a authored about 5 years ago by ccc13 <[email protected]>
Remove bitrig support

support no longer exists for this target in Rust.
See https://github.com/rust-lang/rust/issues/6...

c7bfba3f79665ec8414850f383feea54815917ff authored about 5 years ago by Hiroki Noda <[email protected]>
Use shared returns in platform specific functions

Signed-off-by: Kevin Leimkuhler <[email protected]>

dead7752ba5c3d17cb288539545ba2939a478c69 authored about 5 years ago by Kevin Leimkuhler <[email protected]>
Fix fcntl calls and ensure fds are closed on error

Signed-off-by: Kevin Leimkuhler <[email protected]>

7852c7b8a2a3fcdc3f89c07d92d2af3d9478603d authored about 5 years ago by Kevin Leimkuhler <[email protected]>
Reduce diff

Signed-off-by: Kevin Leimkuhler <[email protected]>

9fbab2f4c3c40baeb65d9d5f571864dc4decdbfe authored about 5 years ago by Kevin Leimkuhler <[email protected]>
Fix nodelay test on Windows

This patch fixes issue #1079.
The issue was happening because the set_nodelay
function, that int...

64483cecd5a1adea08bf27bee603303b797089bf authored about 5 years ago by Silvio <[email protected]>
Remove old comment

Signed-off-by: Kevin Leimkuhler <[email protected]>

3cdf278d127f14166fe32cee5c5ab2e9731bf17f authored about 5 years ago by Kevin Leimkuhler <[email protected]>
Consolidate path_offset expr and add tests

Signed-off-by: Kevin Leimkuhler <[email protected]>

6bc8b44a25e823ab00f4becd3bea92bec635b91f authored about 5 years ago by Kevin Leimkuhler <[email protected]>
Fix socket_addr() to not drop chars in path (#1102)

Fix socket_addr() to not drop chars in path

3acbd6ca7a65bc4e8261c6a5a6d2d1ac53e943fb authored about 5 years ago by glelk <[email protected]>
Add UDS support for Unix systems (#1098)

### Summary

This change adds UDS support for Unix systems. The networking primitives
`src/ne...

9fe594eae1b92ad1d045c1456cc3d608b0ca7689 authored about 5 years ago by Kevin Leimkuhler <[email protected]>
fix documentation

145a8376c80c2b4638e847f3ca2206fdd6d6a9db authored about 5 years ago by Kev Jackson <[email protected]>
update deps to latest

ebc85b153b63f3d31c24d9b4402206fa1d7398f4 authored over 5 years ago by yjhmelody <[email protected]>
Check EV_EOF in Event::is_hup on kqueue platforms

861f6868d6c2df121f26c601bad99379a62153a2 authored over 5 years ago by Thomas de Zeeuw <[email protected]>
Read till would block

0e02d54cff11bc18102eb3384716c126536e82ce authored over 5 years ago by Dmitrii Goriunov <[email protected]>
Use 4096 size, remove useless recursion, only extend valid bytes

73310f141b85820e742d921d015af3c6a12ab2ed authored over 5 years ago by Dmitrii Goriunov <[email protected]>
Return ok true

79666733f8fd859ee19909619b6b2d642f9de309 authored over 5 years ago by Dmitrii Goriunov <[email protected]>
If connection closed we still may have some data available

dccf76d7f04fbdb77c21b3e09d082b266b9842be authored over 5 years ago by Dmitrii Goriunov <[email protected]>
Drop test_ prefix from test names

26f08b44c00d4f7519d02600922e5feb06650e99 authored over 5 years ago by Thomas de Zeeuw <[email protected]>
Add TCP server example

It's a simple example but it shows how to do error handling and what to
do when reading 0 bytes.

7c2e17f54af9e0565ca43f0906916ea20dabccd6 authored over 5 years ago by Thomas de Zeeuw <[email protected]>
Make TcpListener::try_clone tests more robust

Before it could be that only one of the connections would be ready to be
accepted, result in wou...

510764ca28f379e31f31976410f7c9a01822f06c authored over 5 years ago by Thomas de Zeeuw <[email protected]>
Check that UdpSocket is non-blocking in smoke test

When no data is available to read/peek the socket should return a
WouldBlock error.

2ca2107e7c589b45f04bc7a5510f3bf8ab89b00e authored over 5 years ago by Thomas de Zeeuw <[email protected]>
Port tests for TcpStream from Gaea

0169793cbae9b9475e85040598b0e454aeb97de9 authored over 5 years ago by Thomas de Zeeuw <[email protected]>
Disable TcpListener::try_clone tests on Windows

They both fails, be it's unknown to me why. It needs further
investigation for which I've opened...

804cdeb6120b80878aac44fe508cf784b196cb3a authored over 5 years ago by Thomas de Zeeuw <[email protected]>
Ignore connection reset error in TcpStream test

In a attempt to fix the TcpStream shutdown_read test.

f9a6b2ececf759c8b8a602493bb1dc3c2a88e4c0 authored over 5 years ago by Thomas de Zeeuw <[email protected]>
Ignore TcpStream nodelay test on Windows

Issue #1079 is opened to investigate why it fails on Windows only.

cc8169690d8907fd24bcc4e38043c505af8df80d authored over 5 years ago by Thomas de Zeeuw <[email protected]>
Ignore flaky TcpStream shutdown_write test

6b02a62828bf1231a9cdece20495fdfdbc343e29 authored over 5 years ago by Thomas de Zeeuw <[email protected]>
Port tests for TcpListener from Gaea

a416d7f1f8852cba6e16be147999cb19988119e3 authored over 5 years ago by Thomas de Zeeuw <[email protected]>
Add tests for the registration process

Check that the event::Source implementation is correctly called.

0ff9bf871c51b9be4731d6ab89ff0e0fc1415009 authored over 5 years ago by Thomas de Zeeuw <[email protected]>
Port tests for UdpSocket from Gaea

There is some overlap in what is tested now however.

ff52e240c372078897d9d3d6bd03fbe9919b87b5 authored over 5 years ago by Thomas de Zeeuw <[email protected]>
Ignore TcpStream smoke tests on Windows

Issue #1078 is opened to investigate why they fail on Windows only.

6423de13cf436823d28e004e89c5019f64fdc78e authored over 5 years ago by Thomas de Zeeuw <[email protected]>
Fix TcpStream's shutdown_both tests

On Windows the error is ConnectionAborted rather then BrokenPipe.

5b82ffb640fdc7c7c67c6d8200a1ab27228d0957 authored over 5 years ago by Thomas de Zeeuw <[email protected]>
Loosen TcpStream shutdown reading side test

What happens is different on each OS, for example on Linux we can still
read but on macOS and Fr...

c082bba7d6bbf6a563d54bb9244e347aeae8d526 authored over 5 years ago by Thomas de Zeeuw <[email protected]>
Ignore some UdpSocket tests on Windows

Issues #1080 is opened to investigate why.

3517758c932b7de62bf7cd1a511b6384a62cf1c5 authored over 5 years ago by Thomas de Zeeuw <[email protected]>
Disable TcpListener deregister test on Windows

Doesn't work, see issue #1070.

414ad2bcf22c1a2f16a336a665858fe88e5eb2a6 authored over 5 years ago by Thomas de Zeeuw <[email protected]>
Set accepted TcpStreams in non-blocking mode

47936291820fe708c0163cc7362c915abca6fefe authored over 5 years ago by Thomas de Zeeuw <[email protected]>
Return instead of panicing

fc23ef308334700b4c509e63038cda3f05695886 authored over 5 years ago by Heinz N. Gies <[email protected]>
Add udp echo server example

8f5861e83383bc9a50595d13f80fb1f180717f3f authored over 5 years ago by Heinz N. Gies <[email protected]>
Replace unwrap with io::Result

afc196a7db972daa88a2978ec93bd0479acafc55 authored over 5 years ago by Heinz N. Gies <[email protected]>
Fix typo and format code

9dbcfdd0172d5b61ccb74304a03b535b8eda3f1f authored over 5 years ago by Heinz N. Gies <[email protected]>
Remove IRC reference (#1075)

0d8f48d24c577e5379c936e72610a997aa716e8c authored over 5 years ago by Alex Touchet <[email protected]>
Replace IRC channel with Gitter (#1069)

The Mozilla IRC network is being shutdown, see
https://blog.rust-lang.org/2019/04/26/Mozilla-IR...

803573fa28244a513ea10d97fc7df725dfa9ce9b authored over 5 years ago by Thomas de Zeeuw <[email protected]>
fix CI

d6edcd13fd4ad7d7f76f1e2ebc38c680adc17a17 authored over 5 years ago by Carl Lerche <[email protected]>
try fixing ci again

017d018d75431323ff146089e074436b87dcb1a5 authored over 5 years ago by Carl Lerche <[email protected]>
misc cleanup

* split up TCP files into stream / listener
* organize import order
* split up misc other files

19d5ebe61c7fef3f9cf35997f456a937829b7b6e authored over 5 years ago by Carl Lerche <[email protected]>
fix clippy

092d6fdc7d6ea9a6693b319ed3f46a6ba5ebe484 authored over 5 years ago by Carl Lerche <[email protected]>
include testing --release in CI

5a5b5f7d437f9ab2c901f9f93ff0a147b2a82766 authored over 5 years ago by Carl Lerche <[email protected]>
Fix size test

29fd58deda0ea348b6302b706118675ef94fcbda authored over 5 years ago by Carl Lerche <[email protected]>
Use Selector::try_clone in kqueue::Waker

Removing the special Selector::try_clone_waker method.

72a001a8e3ee1461f87bc3bfb6fe144beeaf92e0 authored over 5 years ago by Thomas de Zeeuw <[email protected]>
Use consistent use statement order

3550494f0b29c5a3de98a416dd20350e991f5ef2 authored over 5 years ago by Thomas de Zeeuw <[email protected]>
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.

e739790cb800e15a06036ec659c243ad7891f475 authored over 5 years ago by Thomas de Zeeuw <[email protected]>
Fix issue in #1062

e054a7d58781c899fcfaece6177532b69d3ed87c authored over 5 years ago by PerfectLaugh <[email protected]>
Test with extended time length.

fbecef6684e2388e6bd9cffa26ee1a3738599267 authored over 5 years ago by PerfectLaugh <[email protected]>
Recover non-blocking connect and bind

1dd6000a6d9dfbe2c144daa535e1d781cb8b1fa0 authored over 5 years ago by PerfectLaugh <[email protected]>
Changed as requested

588e808576842c49beb8ec831ac5ee794f8547fa authored over 5 years ago by PerfectLaugh <[email protected]>
Refactored InternalState, improved select timeout handling and AFD flags fixes

5de1317418be25beeaabe2709106170a0354cfdf authored over 5 years ago by PerfectLaugh <[email protected]>
Improve afd_group locks

bbc2f774c9b5c62ac020129f6da4e8ce67ce40dd authored over 5 years ago by PerfectLaugh <[email protected]>
Changes RefCell to UnsafeCell

6b810629c3d7cc051ea514973dd1128de0be5ab6 authored over 5 years ago by PerfectLaugh <[email protected]>
Temporary fix for https://github.com/tokio-rs/mio/issues/1041#issuecomment-519674615

8e0b0364ab1451721327fe2055227c4967eafeef authored over 5 years ago by PerfectLaugh <[email protected]>
Add test in pr #1065

c7674d64ad15e50c1c61dae6f3b48ce1b141aa03 authored over 5 years ago by PerfectLaugh <[email protected]>
Fix udp issue in #1062

d7fa70644f47192889efae8c21c51fd94c86d19b authored over 5 years ago by PerfectLaugh <[email protected]>
Fix several flags handling

2653117b845466cfef89641214ee8f1a7424c969 authored over 5 years ago by PerfectLaugh <[email protected]>
Reverts two issues

This reverts commit 9dc562ca0f9c2a260a3e2e953a5a636103d8a903.

4276d071e3bec486115cc1a7af583c31a45c3f81 authored over 5 years ago by PerfectLaugh <[email protected]>
Comply with rustfmt

4dc7bae2a03f9c3819d1cdd0cb7c1cfc7dcc816c authored over 5 years ago by PerfectLaugh <[email protected]>
Test without timeout

7b06041b4c3279745a7c689780ee76790dfdba36 authored over 5 years ago by PerfectLaugh <[email protected]>
Make is_read_hup detects AFD_POLL_DISCONNECT

d07989a3b88962cd59459231febfd1afe3c22ff1 authored over 5 years ago by PerfectLaugh <[email protected]>
Cancel ignore of test_registry_behind_arc

b60218d9b203d66cb1517e3d0b5ab1dac954eb8b authored over 5 years ago by PerfectLaugh <[email protected]>
Fix for https://github.com/tokio-rs/mio/issues/1041#issuecomment-519674615

c6d88a5810a086315bbd8a25308da81ac51457cc authored over 5 years ago by PerfectLaugh <[email protected]>
Make Interests::is_* methods constant

ce662857470a0267202a89ca8f952e24bed7900a authored over 5 years ago by Thomas de Zeeuw <[email protected]>