Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

windows vectored io for sockets #1552

Merged
merged 9 commits into from
Feb 28, 2020
Merged

windows vectored io for sockets #1552

merged 9 commits into from
Feb 28, 2020

Conversation

coot
Copy link
Contributor

@coot coot commented Jan 31, 2020

Currently this PR is opened to merge into coot/windows-api, but after #1516 is merged it will be re-targeted to master - it's just to make the diff adequate.

This PR provides vectored IO for sockets, vectored IO for file handles will be done at a later stage.
It also includes documentation overview, which will be useful for other teams (cardano-wallet or cardano-launcher).

@coot coot requested review from dcoutts and karknu January 31, 2020 12:39
@coot coot force-pushed the coot/windows-vectored-io branch from 2ecc959 to ef081a4 Compare February 1, 2020 11:40
@coot coot force-pushed the coot/windows-api branch 3 times, most recently from bfc1efe to 565bb29 Compare February 3, 2020 14:05
@coot coot force-pushed the coot/windows-vectored-io branch from ef081a4 to 6d5204e Compare February 4, 2020 16:12
@coot coot force-pushed the coot/windows-api branch from 565bb29 to 2f81dec Compare February 4, 2020 16:17
@iohk-bors iohk-bors bot closed this Feb 4, 2020
@coot coot reopened this Feb 4, 2020
@coot coot changed the base branch from coot/windows-api to coot/snockets February 4, 2020 16:56
@coot coot force-pushed the coot/windows-vectored-io branch 2 times, most recently from dbeaa16 to affb6ea Compare February 11, 2020 15:19
@coot coot force-pushed the coot/windows-vectored-io branch from affb6ea to 3806a47 Compare February 14, 2020 18:30
@coot coot changed the base branch from coot/snockets to master February 14, 2020 18:31
@coot coot force-pushed the coot/windows-vectored-io branch from 3806a47 to 9c20430 Compare February 18, 2020 16:35
Copy link
Contributor

@karknu karknu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just some minor comments.

ouroboros-network/test/Test/Pipe.hs Show resolved Hide resolved
@coot coot force-pushed the coot/windows-vectored-io branch from 9c20430 to 085c24a Compare February 28, 2020 13:55
Copy link
Contributor

@karknu karknu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@coot
Copy link
Contributor Author

coot commented Feb 28, 2020

bors r+

@iohk-bors
Copy link
Contributor

iohk-bors bot commented Feb 28, 2020

Merge conflict

coot added 5 commits February 28, 2020 15:24
Run pipe tests on windows using `pipeChannelFromNamedPipe` This patch
makes test-network buildable again and enables pipes tests on Windows.
HsSendBuf is taking now a pointer to `WSABUF` and passes it directly to
WSASend.  This will allow us to implement vectored io (send part) for
lazy bytestrings.
As in the network package, we use the strict ByteString version to
receive a single ByteSting and put it as a sole chunk in a lazy
ByteString.  `defaultChunkSize` is 32kb which which is roughly 21 tcp
segments.
coot added 4 commits February 28, 2020 15:24
Let the user of the library choose wether to use
'System.Win32.Async.Socket.ByteString' or
'System.Win32.Async.Socket.ByteString.Lazy'.
Limit the scope of masked exceptions only to the
'Network.Socket.connect' / 'Network.Socket.accept' call.
@coot coot force-pushed the coot/windows-vectored-io branch from 085c24a to 7c582b7 Compare February 28, 2020 14:26
@coot
Copy link
Contributor Author

coot commented Feb 28, 2020

bors r+

@iohk-bors
Copy link
Contributor

iohk-bors bot commented Feb 28, 2020

@iohk-bors iohk-bors bot merged commit 2cb318b into master Feb 28, 2020
@iohk-bors iohk-bors bot deleted the coot/windows-vectored-io branch February 28, 2020 15:23
@coot coot restored the coot/windows-vectored-io branch February 28, 2020 18:27
@vhulchenko-iohk vhulchenko-iohk modified the milestone: S7 2020-02-27 Feb 28, 2020
@coot coot deleted the coot/windows-vectored-io branch March 6, 2020 12:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants