Re: [PATCH] net/smc: sync err info when TCP connection is refused

From: Paolo Abeni
Date: Thu Apr 21 2022 - 04:10:32 EST


On Sun, 2022-04-17 at 20:33 +0800, yacanliu@xxxxxxx wrote:
> From: liuyacan <liuyacan@xxxxxxxxxxxxxxxx>
>
> In the current implementation, when TCP initiates a connection
> to an unavailable [ip,port], ECONNREFUSED will be stored in the
> TCP socket, but SMC will not. However, some apps (like curl) use
> getsockopt(,,SO_ERROR,,) to get the error information, which makes
> them miss the error message and behave strangely.
>
> Signed-off-by: liuyacan <liuyacan@xxxxxxxxxxxxxxxx>

Could you please formally re-submit for -net (inclusing NET into the
patch subj) with a suitable 'fixes' tag? You can retain the already
collected reviewed/ack-by tags.

Thanks!

Paolo