2
0
Fork 1
mirror of https://github.com/async-rs/async-std.git synced 2025-01-16 10:49:55 +00:00
Commit graph

10 commits

Author SHA1 Message Date
Yoshua Wuyts
bd297473cc
Merge pull request #856 from yshui/master
Fix #855
2020-08-28 16:00:09 +02:00
Marc-Antoine Perennou
14d3e9865b switch from tempdir to tempfile
Uses a more recent version of rand

Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
2020-08-19 14:11:30 +02:00
Yuxuan Shui
59874d639c
tests: add test case for UnixStream::into_raw_fd
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2020-08-18 11:10:20 +01:00
Jacob Rothstein
cd5e17fe87
make UnixStream Clone 2020-05-10 18:21:45 -07:00
dignifiedquire
e4df1405c1 feat: add basic wasm support 2020-05-02 20:27:50 +02:00
Miloš Vučenović
c3e38150e4 Fix uds listener hanging on accept (#272)
* Fix uds listener hanging on accept

UDS listener was hanging because the accept method would return
`Poll::Pending` without registering the task to be awoken in the case
when underlying unix listener returns a WouldBlock that gets converted
to None. This is a hacky fix for this case.

Should fix #248

* Test simulating uds ping-pong server/client

This one should reproduce #248 bug to prevent further regressions.

* Code review fixes
2019-10-07 16:49:42 +02:00
Yuxuan Shui
876059cfe0
Make sure ownership is transferred in into_raw_fd
Previously all of the into_raw_fd implementations only returns a copy of
the inner RawFd, while still holding the ownership of the file
descriptor when returning for into_raw_fd. Since `self` is dropped at
the end of into_raw_fd, the returned file descriptor will actually be
closed, render the function unuseable.

The patch makes sure that into_raw_fd actually takes the ownership of
the file descriptor all the way from the inner IoHandle. To achieve
this, I have to use an Option in IoHandle to store the I/O source. It's
not pretty, but I cannot come up with a better way.
2019-09-06 10:36:25 +01:00
Yuxuan Shui
2ca9c46b4b
Add tests for UnixDatagram from_raw_fd/into_raw_fd 2019-09-05 23:56:31 +01:00
Yoshua Wuyts
63ad786768
remove async_await feature gate
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
2019-08-21 00:29:35 -07:00
Florian Gilcher
5b0a6269a9
Initial commit 2019-08-08 14:44:48 +02:00