Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2010-12-23 | All calls to event_add_to_select_args() call GetTimeOfDay() and | Jeremy Allison | 1 | -7/+2 | |
pass this in as the &now parameter. Push this call inside of event_add_to_select_args() to the correct point so it doesn't get called unless needed. Jeremy. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Thu Dec 23 01:08:11 CET 2010 on sn-devel-104 | |||||
2010-10-20 | s3: Add some DEBUG | Volker Lendecke | 1 | -0/+2 | |
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Wed Oct 20 11:58:20 UTC 2010 on sn-devel-104 | |||||
2010-10-20 | s3: Cope with EINTR in smbd_[un]lock_socket | Volker Lendecke | 1 | -2/+10 | |
2010-10-19 | Add deadtime detection for SMB2. Correctly update lastused timestamp across ↵ | Jeremy Allison | 1 | -13/+1 | |
all active tcons. Should fix dfree cache not updating bug. | |||||
2010-10-14 | s3: Remove smbd_server_conn from construct_reply | Volker Lendecke | 1 | -4/+6 | |
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Thu Oct 14 12:35:07 UTC 2010 on sn-devel-104 | |||||
2010-10-14 | s3: Lift smbd_server_conn from receive_smb_talloc | Volker Lendecke | 1 | -10/+9 | |
2010-10-14 | s3: Lift smbd_server_conn from receive_smb_raw_talloc | Volker Lendecke | 1 | -8/+10 | |
2010-10-14 | s3: Lift smbd_server_conn from receive_smb_raw_talloc_partial_read | Volker Lendecke | 1 | -10/+10 | |
2010-10-14 | s3: Remove some explicit smbd_server_conn refs in process_smb() | Volker Lendecke | 1 | -2/+2 | |
2010-10-14 | s3: Rename "conn" to the more used "sconn" in process_smb() | Volker Lendecke | 1 | -7/+7 | |
2010-10-07 | s3: Fix the async echo responder for netbios keepalives | Volker Lendecke | 1 | -10/+23 | |
This fixes a crash in the echo responder when the client started to send the NetBIOS-Level 0x85-style keepalive packets. We did not correctly check the packet length, so the code writing the signing seqnum overwrote memory after the malloc'ed area for the 4 byte keepalive packet. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Thu Oct 7 19:47:35 UTC 2010 on sn-devel-104 | |||||
2010-10-06 | s3: Make the write end of the echo responder pipe non-blocking | Volker Lendecke | 1 | -0/+1 | |
Without this, we can get a writable pipe end, but the writev call on the pipe will block. Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Wed Oct 6 13:57:30 UTC 2010 on sn-devel-104 | |||||
2010-10-01 | s3:events: Call all ready fd event handlers on each iteration of the main loop | Steven Danneman | 1 | -19/+16 | |
Previously, only one fd handler was being called per main message loop in all smbd child processes. In the case where multiple fds are available for reading the fd corresponding to the event closest to the beginning of the event list would be run. Obviously this is arbitrary and could cause unfairness. Usually, the first event fd is the network socket, meaning heavy load of client requests can starve out other fd events such as oplock or notify upcalls from the kernel. In this patch, I have changed the behavior of run_events() to unset any fd that it has already called a handler function, as well as decrement the number of fds that were returned from select(). This allows the caller of run_events() to iterate it, until all available fds have been handled. I then changed the main loop in smbd child processes to iterate run_events(). This way, all available fds are handled on each wake of select, while still checking for timed or signalled events between each handler function call. I also added an explicit check for EINTR from select(), which previously was masked by the fact that run_events() would handle any signal event before the return code was checked. This required a signature change to run_events() but all other callers should have no change in their behavior. I also fixed a bug in run_events() where it could be called with a selrtn value of -1, doing unecessary looping through the fd_event list when no fds were available. Also, remove the temporary echo handler hack, as all fds should be treated fairly now. | |||||
2010-10-01 | samba: share select wrappers. | Günther Deschner | 1 | -0/+1 | |
Guenther | |||||
2010-09-28 | s3: Attempt to fix bug 7518 | Volker Lendecke | 1 | -6/+6 | |
If select returns -1, we can't rely on the fd sets. The current code might loop endlessly because when putting an invalid fd (the closed socket?) on the read set, a select implementation might choose not to touch it but directly return with EINVAL. Thus run_events will see the socket readable, which leads to a "return true", and thus a NT_STATUS_RETRY -> same game again. We should never get into this situation, but to me the logfiles given in bug 7518 do not reveal enough information to understand how this can happen. | |||||
2010-09-28 | s3: Increase the debuglevel for connection termination msgs | Volker Lendecke | 1 | -2/+2 | |
2010-09-28 | s3: Remove two calls to procid_self() | Volker Lendecke | 1 | -2/+4 | |
2010-09-28 | s3: Remove "server_fd" global variable | Volker Lendecke | 1 | -7/+4 | |
2010-09-26 | Fix bug #7698 - Assert causes smbd to panic on invalid NetBIOS session request. | Jeremy Allison | 1 | -1/+1 | |
Found by the CodeNomicon test suites at the SNIA plugfest. http://www.codenomicon.com/ If an invalid NetBIOS session request is received the code in name_len() in libsmb/nmblib.c can hit an assert. Re-write name_len() and name_extract() to use "buf/len" pairs and always limit reads. Jeremy. | |||||
2010-09-20 | s3-build: only include ctdbd_conn.h where needed. | Günther Deschner | 1 | -0/+1 | |
Guenther | |||||
2010-09-20 | s3-build: only include async headers where needed. | Günther Deschner | 1 | -0/+1 | |
Guenther | |||||
2010-09-05 | s3: On Solaris, iov_len is an int | Volker Lendecke | 1 | -1/+3 | |
We can't use &iov.iov_len passing it to a size_t * | |||||
2010-08-31 | s3: messaging_ctdbd_connection() was only called with procid_self() | Volker Lendecke | 1 | -1/+1 | |
Eventually we'll get this right... | |||||
2010-08-29 | s3: Fix an uninitialized variable | Volker Lendecke | 1 | -1/+1 | |
2010-08-29 | s3: Fix the build without cluster | Volker Lendecke | 1 | -0/+4 | |
2010-08-29 | s3: Remove two uses of smbd_server_fd() | Volker Lendecke | 1 | -1/+1 | |
Actually, this is a bit cheating. But those two files depend on smbd_server_conn anyway, it does not make things worse. | |||||
2010-08-29 | s3: Remove smbd_server_fd() from smbd_register_ips | Volker Lendecke | 1 | -3/+4 | |
2010-08-29 | s3: Lift smbd_server_fd() from msg_release_ip() | Volker Lendecke | 1 | -4/+4 | |
2010-08-29 | s3: Lift smbd_server_fd() from release_ip() | Volker Lendecke | 1 | -11/+27 | |
2010-08-29 | s3: Pass sconn to check_reload | Volker Lendecke | 1 | -4/+4 | |
This removes a use of smbd_server_fd() | |||||
2010-08-29 | s3: Pass sconn instead of msg_ctx to housekeeping_fn | Volker Lendecke | 1 | -6/+5 | |
2010-08-28 | s3:smbd: s/sa_len/sa_socklen , because sa_len is a macro on IRIX | Stefan Metzmacher | 1 | -7/+7 | |
metze | |||||
2010-08-24 | s3: Move "trans_num" to smbd_server_connection | Volker Lendecke | 1 | -4/+3 | |
2010-08-24 | s3: Make srv_send_smb take an sconn instead of a sock fd | Volker Lendecke | 1 | -11/+11 | |
2010-08-22 | s3: Replace calls to check_access by allow_access | Volker Lendecke | 1 | -4/+6 | |
We already have both the name and address of the client stored now | |||||
2010-08-18 | s3: Lift smbd_server_fd from reload_services() | Volker Lendecke | 1 | -3/+3 | |
2010-08-17 | s3: Lift smbd_server_fd() from receive_smb_raw_talloc | Volker Lendecke | 1 | -5/+5 | |
2010-08-17 | s3: Lift smbd_server_fd() from read_smb_length_return_keepalive | Volker Lendecke | 1 | -1/+5 | |
2010-08-17 | s3: Lift smbd_server_fd() from read_fd_with_timeout() | Volker Lendecke | 1 | -1/+16 | |
2010-08-17 | s3: Remove smbd_server_fd() from write_data() | Volker Lendecke | 1 | -3/+20 | |
This completely removes the DEBUG(0, ..) error message from write_data(). I've gone through all callers of write_data() and made sure that they have their own equivalent error message printing. | |||||
2010-08-16 | s3: Remove smbd_server_fd() from smbd_process | Volker Lendecke | 1 | -8/+8 | |
2010-08-16 | s3: Remove smbd_server_fd() from smbd_echo_loop | Volker Lendecke | 1 | -1/+1 | |
2010-08-16 | s3: Remove smbd_server_fd() from smbd_echo_reader | Volker Lendecke | 1 | -2/+2 | |
2010-08-16 | s3: Remove smbd_server_fd() from smbd_echo_reply | Volker Lendecke | 1 | -5/+3 | |
2010-08-16 | s3: Remove smbd_server_fd() from keepalive_fn | Volker Lendecke | 1 | -1/+1 | |
2010-08-16 | s3: Remove smbd_server_fd() from smbd_server_connection_handler | Volker Lendecke | 1 | -1/+1 | |
2010-08-16 | s3: Remove smbd_server_fd() from smbd_server_connection_read_handler | Volker Lendecke | 1 | -2/+2 | |
2010-08-16 | s3: Remove smbd_server_fd() from chain_reply | Volker Lendecke | 1 | -2/+2 | |
2010-08-16 | s3: Remove smbd_server_fd() from construct_reply | Volker Lendecke | 1 | -2/+2 | |
2010-08-16 | s3: Remove smbd_server_fd() from switch_message | Volker Lendecke | 1 | -1/+1 | |