Yes, I think it is possible to really support setting the last error on socket, somehow between the lines of your patch. But that seems rather convoluted and if the only known case depends on setting SO_ERROR to succeed I personally am not motivated to pursue finalizing such an implementation.
Do you know anything actually depending on that to fully work?
On 11/14/22 16:53, Alex Henrie (@alexhenrie) wrote:
I sent a patch a year ago to support setting SO_ERROR (and not just fake success), but it was not accepted, presumably because I didn't have a compelling enough use case: https://www.winehq.org/mailman3/hyperkitty/list/wine-devel@winehq.org/thread...