mirror of
https://github.com/samba-team/samba.git
synced 2025-11-15 16:23:49 +03:00
r3314: added a option "socket:testnonblock" to the generic socket code. If
you set this option (either on the command line using --option or in smb.conf) then every socket recv or send will return short by random amounts. This allows you to test that the non-blocking socket logic in your code works correctly. I also removed the flags argument to socket_accept(), and instead made the new socket inherit the flags of the old socket, which makes more sense to me.
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
a2d92aa431
commit
406d356e69
@@ -208,7 +208,7 @@ static void messaging_listen_handler(struct event_context *ev, struct fd_event *
|
||||
smb_panic("Unable to allocate messaging_rec");
|
||||
}
|
||||
|
||||
status = socket_accept(msg->sock, &rec->sock, 0);
|
||||
status = socket_accept(msg->sock, &rec->sock);
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
smb_panic("Unable to accept messaging_rec");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user