summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1996-06-10 05:16:19 +0000
committerAndrew Tridgell <tridge@samba.org>1996-06-10 05:16:19 +0000
commita521fe8a274c8a043cf77641dd4160fdef803533 (patch)
tree67bbb5bb827896e10f7e611d02a8e5710a9045fe /source3/include
parent7e3b4a1c0df1434eb3d02f93c736ce065f9898d8 (diff)
downloadsamba-a521fe8a274c8a043cf77641dd4160fdef803533.tar.gz
samba-a521fe8a274c8a043cf77641dd4160fdef803533.tar.bz2
samba-a521fe8a274c8a043cf77641dd4160fdef803533.zip
a cleanup of the receive_smb() usage, adding timeouts in some places
also added paranoid code in the main process() loop of smbd to detect when smbd is looping uselessly. This should stop the "smbd is chewing lots of cpu" reports (This used to be commit 8e9dce34d50d673cb50531f0c4c7672ce2522cef)
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/smb.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/include/smb.h b/source3/include/smb.h
index 5fd2e0846b..b9dd13a802 100644
--- a/source3/include/smb.h
+++ b/source3/include/smb.h
@@ -99,6 +99,9 @@ typedef unsigned int uint32;
#define DEFAULT_PIPE_TIMEOUT 10000000 /* Ten seconds */
#endif
+/* how long to wait for secondary SMB packets (seconds) */
+#define SMB_SECONDARY_WAIT 30
+
/* debugging code */
#ifndef SYSLOG
#define DEBUG(level,body) ((DEBUGLEVEL>=(level))?(Debug1 body):0)