1
0
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:
Andrew Tridgell
2004-10-28 07:55:33 +00:00
committed by Gerald (Jerry) Carter
parent a2d92aa431
commit 406d356e69
8 changed files with 34 additions and 17 deletions

View File

@@ -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");
}