mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Merged V1.3 to HEAD (3117:3125)
svn merge svn://www.alfresco.org:3691/alfresco/BRANCHES/V1.3@3117 svn://www.alfresco.org:3691/alfresco/BRANCHES/V1.3@3125 . git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@3402 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -20,7 +20,6 @@ import java.net.InetAddress;
|
||||
import java.net.Socket;
|
||||
import java.net.SocketException;
|
||||
|
||||
import org.alfresco.filesys.netbios.RFCNetBIOSProtocol;
|
||||
import org.alfresco.filesys.server.config.ServerConfiguration;
|
||||
import org.alfresco.filesys.smb.mailslot.TcpipNetBIOSHostAnnouncer;
|
||||
|
||||
@@ -154,7 +153,7 @@ public class NetBIOSSessionSocketHandler extends SessionSocketHandler
|
||||
|
||||
// Create the NetBIOS SMB handler
|
||||
|
||||
SessionSocketHandler sessHandler = new NetBIOSSessionSocketHandler(server, RFCNetBIOSProtocol.PORT, config
|
||||
SessionSocketHandler sessHandler = new NetBIOSSessionSocketHandler(server, config.getNetBIOSSessionPort(), config
|
||||
.getSMBBindAddress(), sockDbg);
|
||||
sessHandler.initialize();
|
||||
|
||||
@@ -171,7 +170,7 @@ public class NetBIOSSessionSocketHandler extends SessionSocketHandler
|
||||
// DEBUG
|
||||
|
||||
if (logger.isDebugEnabled() && sockDbg)
|
||||
logger.debug("TCP NetBIOS session handler created");
|
||||
logger.debug("TCP NetBIOS session handler created on port " + config.getNetBIOSSessionPort());
|
||||
|
||||
// Check if a host announcer should be created
|
||||
|
||||
@@ -188,6 +187,7 @@ public class NetBIOSSessionSocketHandler extends SessionSocketHandler
|
||||
announcer.setDomain(config.getDomainName());
|
||||
announcer.setComment(config.getComment());
|
||||
announcer.setBindAddress(config.getSMBBindAddress());
|
||||
announcer.setPort(config.getNetBIOSDatagramPort());
|
||||
|
||||
// Set the announcement interval
|
||||
|
||||
@@ -222,7 +222,7 @@ public class NetBIOSSessionSocketHandler extends SessionSocketHandler
|
||||
// DEBUG
|
||||
|
||||
if (logger.isDebugEnabled() && sockDbg)
|
||||
logger.debug("TCP NetBIOS host announcer created");
|
||||
logger.debug("TCP NetBIOS host announcer created on port " + config.getNetBIOSDatagramPort());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -80,15 +80,6 @@ public class SMBServer extends NetworkFileServer implements Runnable
|
||||
|
||||
private int m_srvType = ServerType.WorkStation + ServerType.Server + ServerType.NTServer;
|
||||
|
||||
// Next available session id
|
||||
|
||||
private int m_sessId;
|
||||
|
||||
// Server shutdown flag and server active flag
|
||||
|
||||
private boolean m_shutdown = false;
|
||||
private boolean m_active = false;
|
||||
|
||||
// Server GUID
|
||||
|
||||
private UUID m_serverGUID;
|
||||
@@ -472,7 +463,7 @@ public class SMBServer extends NetworkFileServer implements Runnable
|
||||
|
||||
// Clear the server shutdown flag
|
||||
|
||||
m_shutdown = false;
|
||||
setShutdown(false);
|
||||
|
||||
// Get the list of IP addresses the server is bound to
|
||||
|
||||
@@ -529,7 +520,7 @@ public class SMBServer extends NetworkFileServer implements Runnable
|
||||
|
||||
// Wait for incoming connection requests
|
||||
|
||||
while (m_shutdown == false)
|
||||
while (hasShutdown() == false)
|
||||
{
|
||||
|
||||
// Sleep for a while
|
||||
@@ -569,7 +560,7 @@ public class SMBServer extends NetworkFileServer implements Runnable
|
||||
// Do not report an error if the server has shutdown, closing the server socket
|
||||
// causes an exception to be thrown.
|
||||
|
||||
if (m_shutdown == false)
|
||||
if (hasShutdown() == false)
|
||||
{
|
||||
logger.error("Server error : ", ex);
|
||||
|
||||
@@ -654,7 +645,7 @@ public class SMBServer extends NetworkFileServer implements Runnable
|
||||
|
||||
// Indicate that the server is closing
|
||||
|
||||
m_shutdown = true;
|
||||
setShutdown(true);
|
||||
|
||||
try
|
||||
{
|
||||
|
@@ -21,7 +21,6 @@ import java.net.Socket;
|
||||
import java.net.SocketException;
|
||||
|
||||
import org.alfresco.filesys.server.config.ServerConfiguration;
|
||||
import org.alfresco.filesys.smb.TcpipSMB;
|
||||
|
||||
/**
|
||||
* Native SMB Session Socket Handler Class
|
||||
@@ -153,7 +152,7 @@ public class TcpipSMBSessionSocketHandler extends SessionSocketHandler
|
||||
|
||||
// Create the NetBIOS SMB handler
|
||||
|
||||
SessionSocketHandler sessHandler = new TcpipSMBSessionSocketHandler(server, TcpipSMB.PORT, config
|
||||
SessionSocketHandler sessHandler = new TcpipSMBSessionSocketHandler(server, config.getTcpipSMBPort(), config
|
||||
.getSMBBindAddress(), sockDbg);
|
||||
|
||||
sessHandler.initialize();
|
||||
@@ -168,6 +167,6 @@ public class TcpipSMBSessionSocketHandler extends SessionSocketHandler
|
||||
// DEBUG
|
||||
|
||||
if (logger.isDebugEnabled() && sockDbg)
|
||||
logger.debug("Native SMB TCP session handler created");
|
||||
logger.debug("Native SMB TCP session handler created on port " + config.getTcpipSMBPort());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user