.
D 2026-10-12T08:10:00.339
J cmimetype text/x-fossil-wiki
J comment On\sillumos\s(OpenIndiana),\sa\snon-blocking\s<code>connect()</code>\sto\sa\slocal\sport\nwithout\sa\slistener\sfails\sat\sonce\swith\sECONNREFUSED\sinstead\sof\sEINPROGRESS.\sThen\n<code>socket\s-async</code>\sthrows\s<code>couldn't\sopen\ssocket:\sconnection\srefused</code>\ninstead\sof\sreturning\sa\schannel\swhich\sreports\sthe\sfailure\swith\n<code>fconfigure\s-error</code>\sand\sthe\swritable\sevent,\sas\ssocket(n)\sdescribes.\nThis\sfails\ssocket-14.2,\s14.7.2,\s14.8.2,\s14.11.0,\s14.12,\s14.14-14.18\sand\shttp-4.14.\n\nThis\swas\sseen\son\sSolaris\sbefore\s([3428754]:\stest\ssocket-14.2\swas\smade\sto\saccept\nthe\serror),\sbut\ssince\sthe\s2014\srework\sthe\stests\sexpect\sthe\serror\sto\sbe\sreported\nonly\sby\s<code>fconfigure\s-error</code>\s([42d50ebd0c]).\n\nProposed\sfix\sin\sbranch\s[/timeline?r=unix-async-connect-immediate-failure|unix-async-connect-immediate-failure]:\nan\sasync\sconnect\swhich\sfails\sat\sonce\sis\sreported\slike\sa\sfailure\sin\sthe\sbackground.\nsocket-14.11.1,\s14.16\sand\s14.17,\swhich\sneed\sthe\sconnect\sto\sbe\sstill\sin\sprogress,\nget\sa\snew\sconstraint\s<code>asyncConnectPending</code>.
J foundin 9.1.0
J login serhiy.storchaka
J priority 5\sMedium
J resolution None
J severity Minor
J status Open
J submitter serhiy.storchaka
J subsystem 27.\sChannel\sTypes
J title socket\s-async\sthrows\swhen\sthe\sconnect\sfails\sat\sonce\s(illumos)
J type Bug
K 59e7e7fdfbcd8ee34a5a51a9a83990c7115ecc03
U serhiy.storchaka
Z 4147659171263a81e650817868f5e420