You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by Gerald Richter <ri...@ecos.de> on 2002/04/07 10:55:10 UTC

Re: Objects within an Embperl page

>
>   I'm not mounting.  Filesys::SmbClient appears to make a fresh SMB
> connection each time one of its methods (open, opendir, unlink, mkdir,
> etc) is called.  Running outside of Apache/Embperl, I have no problem with
> it.  But inside, it is somehow recalling the file descriptor and the fact
> that it connected successfully before.
>

I don't have used Filesys::SmbClient, so I am just guessing...., maybe the
module keeps the filehandle somewhere to speed up execution. Since you run
under mod_perl all globals will rest forever unless they are cleaned up.
Embperl does this for all globals inside a Embperl page, but if
Filesys::SmbClient caches the filehandle somewhere, then it will be still
there when the next request comes in.

I think you should either look to the source of Filesys::SmbClient or ask
it's author

Gerald




-------------------------------------------------------------
Gerald Richter    ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post:       Tulpenstrasse 5         D-55276 Dienheim b. Mainz
E-Mail:     richter@ecos.de         Voice:    +49 6133 925131
WWW:        http://www.ecos.de      Fax:      +49 6133 925152
-------------------------------------------------------------



---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Re: Objects within an Embperl page

Posted by Earwig <ea...@taar.com>.
  I finally got ahold of the writer of Filesys::SmbClient, and discovered
that it's a problem with libsmbclient and persistent connections.  The
Samba folks are working to make the library support them.

Thanks,
Lars


On Sun, 7 Apr 2002, Gerald Richter wrote:

> >
> >   I'm not mounting.  Filesys::SmbClient appears to make a fresh SMB
> > connection each time one of its methods (open, opendir, unlink, mkdir,
> > etc) is called.  Running outside of Apache/Embperl, I have no problem with
> > it.  But inside, it is somehow recalling the file descriptor and the fact
> > that it connected successfully before.
> >
> 
> I don't have used Filesys::SmbClient, so I am just guessing...., maybe the
> module keeps the filehandle somewhere to speed up execution. Since you run
> under mod_perl all globals will rest forever unless they are cleaned up.
> Embperl does this for all globals inside a Embperl page, but if
> Filesys::SmbClient caches the filehandle somewhere, then it will be still
> there when the next request comes in.
> 
> I think you should either look to the source of Filesys::SmbClient or ask
> it's author
> 
> Gerald
> 
> 
> 
> 
> -------------------------------------------------------------
> Gerald Richter    ecos electronic communication services gmbh
> Internetconnect * Webserver/-design/-datenbanken * Consulting
> 
> Post:       Tulpenstrasse 5         D-55276 Dienheim b. Mainz
> E-Mail:     richter@ecos.de         Voice:    +49 6133 925131
> WWW:        http://www.ecos.de      Fax:      +49 6133 925152
> -------------------------------------------------------------
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org