]> source.dussan.org Git - rspamd.git/commit
[Minor] Make socket non-blocking before connect()
authorMikhail Galanin <mgalanin@mimecast.com>
Mon, 24 Sep 2018 14:27:57 +0000 (15:27 +0100)
committerMikhail Galanin <mgalanin@mimecast.com>
Mon, 24 Sep 2018 14:27:57 +0000 (15:27 +0100)
commite637e15306f18e27767941be4670b7091056ccc4
treed920345044ccdf85dba159c23bc7005007dc0e05
parent41a84bc6248297a8a66f70a0991ba418b591fe07
[Minor] Make socket non-blocking before connect()

    Otherwise, in the case of error, socket may become invalid
    and we will get an incorrect error, i.e. "setsockopt(TCP_NODELAY): Invalid argument"
    instead of "Connection refused"
contrib/hiredis/net.c