libsmbclient fails after some time
root at ns.aus.com
Tue Oct 22 19:15:03 GMT 2002
On Mon, 21 Oct 2002, Abhijeet Paturkar wrote:
> I am using libsmbclient on Linux Red Hat 7.2
> We have developed C++ wrapper around libsmbclient 2.2.5.
> This wrapper is integrated with Java using JNI.
> And this Java class is used in Application server in JSP
> The stat for libsmbclient works properly for some time and then fails
> when the link for the JSP is tried after say 3-4 hours.
> The perror on stat prints "Success".
> We are using following compiler options for building the wrapper.
> g++3 -c -pipe -fPIC -Wall -W -O2 -DUSE_GETTIMEOFDAY -DINTEL_LINUX_70
> -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DUSE_GETTIMEOFDAY
> -DINTEL_LINUX_70 -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DLINUX
> -D_XOPEN_SOURCE=500 -D_LARGEFILE64_SOURCE -D_XOPEN_SOURCE_EXTENDED
> -D_POSIX_PTHREAD_SEMANTICS -D_BSD_SOURCE -D__UNIX__ -DUNIX -D_REENTRANT.
> Does any one encountered such an error ?
Can you get a network trace of the activity? That will help pinpoint what
the problem is. It could be that the TCP connection to the server has
dropped and the client library is not dealing with it correctly.
rsharpe at ns.aus.com, www.richardsharpe.com,
sharpe at samba.org, sharpe at ethereal.com
More information about the samba-technical