curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Re: WSAPoll() anyone?

From: Daniel Stenberg via curl-library <curl-library_at_lists.haxx.se>
Date: Tue, 5 Jul 2022 16:37:00 +0200 (CEST)

On Tue, 5 Jul 2022, Gisle Vanem via curl-library wrote:

> But it looks like things in Winsock has improved in 10 years. Experimenting
> with using WSAPoll()' in select.c, it works fine except for the 'POLLPRI'
> bit (throwing 'WSAEINVAL').

Is there a compelling reason to switch over to WSAPoll()?

It took a long time before we found that poll issue the last time. If there is
an edge case still where they aren't compatible, I can imagine it won't be
easy to reproduce but might introduce strange hard-to-debug side effects down
the line.

Since we don't know in which Windows version the function was fixed, we might
still have curl users with broken WSAPoll implementations - even if more
recent versions work better.

> Perhaps this could be configurable? Like in nmap --nsock-engine=poll, nmap
> --nsock-engine=iocp etc?

I don't think so. When would a user ever try to use that option? Who would
even understand it?

-- 
  / daniel.haxx.se
  | Commercial curl support up to 24x7 is available!
  | Private help, bug fixes, support, ports, new features
  | https://curl.se/support.html
-- 
Unsubscribe: https://lists.haxx.se/listinfo/curl-library
Etiquette:   https://curl.se/mail/etiquette.html
Received on 2022-07-05