Re: about SFTP and Thread dependency

2008-05-28 Thread Jenda Krynicky
From: "Rajnikant" <[EMAIL PROTECTED]> > I was trying to use SFTP in multithreaded application. I observed many > segmentation faults there. > Following is the code snipet: > > use threads; > use Net::SFTP; > > my $thrId = 1; > my $thread = threads->new (\&ftpThreadEntry,$thrId); > $thrId = 2; >

Re: about SFTP and Thread dependency

2008-05-28 Thread Rob Dixon
Rajnikant wrote: > > I'm using perl 5.8.8. > I don't have any clue about whether Net::SFTP is thread safe or not. > > But I used Net::SFTP::Foreign instead of Net::SFTP and it started working > :). > > Now I'm facing some different problem :(. > > If I try calling Net::SFTP::Foreign->ls method i

RE: about SFTP and Thread dependency

2008-05-28 Thread Rajnikant
lly Cause these think works if I don't use thread? Thanks and Best regards, ~ Rajnikant Software Engg. Persistent Sys. Ltd. Ph. +91 98222 04088 -Original Message- From: Chas. Owens [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 28, 2008 7:09 PM To: Rajnikant Sub

RE: about SFTP and Thread dependency

2008-05-28 Thread Rajnikant
{ print("=== not returned anything\n"); } } } } $thread->join(); Do anyone have any guess? Thanks for replies. Thanks and Best regards, ~ Rajnikant Software Engg. Persistent Sys. Ltd. Ph. +91 98222 04088 -O

Re: about SFTP and Thread dependency

2008-05-28 Thread Paul Johnson
On Wed, May 28, 2008 at 01:33:59PM +0530, Rajnikant wrote: > I was trying to use SFTP in multithreaded application. I observed many > segmentation faults there. > Following is the code snipet: > > use threads; > use Net::SFTP; Is Net::SFTP thread safe? Are you using a recent version of Perl? >