Skip to content

Conversation

@asvetlov
Copy link
Contributor

@asvetlov asvetlov commented May 20, 2019

@asvetlov asvetlov marked this pull request as ready for review May 25, 2019 12:52
@asvetlov asvetlov requested a review from 1st1 as a code owner May 25, 2019 12:52
@asvetlov
Copy link
Contributor Author

@vstinner would you review this PR? If you have no time please let me know anyway.

It is a continuation of #1067 with the following differences:

  1. Support scope_id and flowinfo for IPv6 addresses
  2. Fix tp_traverse to process data structures for TYPE_WRITE_TO and TYPE_READ_FROM modes
  3. Increase buffer size for readfrom from 4KiB to 256Kib (256 is used by selector-based event loops)
  4. Support flow-control for data sending, now proactor implementation has the same functionality as selector-based one.
  5. Convert mutable bytearray and memoryview on writing to immutable bytes. The selector-based implementation does the same already.
  6. Add more tests.

I believe that the Pull Request is written well and ready for merging.

@asvetlov asvetlov requested a review from vstinner May 25, 2019 13:43
Co-Authored-By: Xtreak <tir.karthi@gmail.com>
return NULL;
}

Py_BEGIN_ALLOW_THREADS
Copy link
Member

@1st1 1st1 May 28, 2019

Choose a reason for hiding this comment

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

If WSAConnect returns immediately, do we need to release GIL?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Technically it is a syscall.
We have the practice to release GIL on socket.bind() for example

Copy link
Member

@1st1 1st1 left a comment

Choose a reason for hiding this comment

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

Looks good. Merge with caution as I'm not a Windows expert.

@asvetlov
Copy link
Contributor Author

Thank you very much @ameily
You did the most part of work!

@asvetlov asvetlov deleted the asyncio-proactor-udp branch May 28, 2019 09:54
DinoV pushed a commit to DinoV/cpython that referenced this pull request Jan 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants