# Revert "Io.Threaded: remove WSA_FLAG_OVERLAPPED from socket call" · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/1b235540c1d1acdd59aee3c2a8756bc7f0fa55a3)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 1b235540c1d1acdd59aee3c2a8756bc7f0fa55a3

Requested commit: 1b235540c1d1acdd59aee3c2a8756bc7f0fa55a3

Commit: 1b235540c1d1acdd59aee3c2a8756bc7f0fa55a3

Tree: 4077d095953c9a9d1f37ddab2fd7e72fab713635

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
Revert "Io.Threaded: remove WSA_FLAG_OVERLAPPED from socket call"

The stated reason for this commit was cancelation didn't work. On
further review, we know why cancelation didn't work, and recent
enhancements on master branch make it easy to make it work.

Meanwhile, not using overlapped means that multiple threads cannot use
the same open socket handle. I also added line comments to explain the
choice in this revert commit.

This reverts commit fd3657bf8c3a2861e1b35cf36d469d342d853880.

closes #31011
reopens #30865

```

## Parents

- [5eb55ba866484b7933c279006b63d8c2b1eb5856](https://git.cafe/gitcafe/zig/commit/5eb55ba866484b7933c279006b63d8c2b1eb5856?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/1b235540c1d1acdd59aee3c2a8756bc7f0fa55a3?format=markdown)
