Remember who asked for a connect or accept operation so we can actually tell
them when it's done. Reviewed by: archie
This commit is contained in:
parent
abfd963f3e
commit
a7d83226f0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=103205
@ -722,7 +722,7 @@ ng_ksocket_rcvmsg(node_p node, item_p item, hook_p lasthook)
|
||||
* the connection when it comes in.
|
||||
*/
|
||||
priv->response_token = msg->header.token;
|
||||
raddr = priv->response_addr;
|
||||
raddr = priv->response_addr = NGI_RETADDR(item);
|
||||
if (error == 0) {
|
||||
ng_ksocket_finish_accept(priv);
|
||||
} else
|
||||
@ -752,7 +752,7 @@ ng_ksocket_rcvmsg(node_p node, item_p item, hook_p lasthook)
|
||||
if ((so->so_state & SS_ISCONNECTING) != 0)
|
||||
/* We will notify the sender when we connect */
|
||||
priv->response_token = msg->header.token;
|
||||
raddr = priv->response_addr;
|
||||
raddr = priv->response_addr = NGI_RETADDR(item);
|
||||
priv->flags |= KSF_CONNECTING;
|
||||
ERROUT(EINPROGRESS);
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user