It is currently Mon May 20, 2013 5:42 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: abortftpfile hangs program sometime
PostPosted: Sat Mar 31, 2012 4:16 pm 
Offline
Enthusiast
Enthusiast

Joined: Thu Aug 26, 2010 8:26 am
Posts: 111
i do not reason but it does... sometimes.
i wrote a block ftp transfer program that can be safely paused and resumed.
problem is that program is not quiting but freeze-ing width not responding and i have to manually kill it.
i had also same problem when i use winscp (ftp program) and i want to abort upload.
maybe some server problem (settings)?
trying to resolve this problem. any hint?

ps: using transfer in background

_________________
Registered user of PB (on Kubuntu 12.04 64bit & Win7 32bit)


Top
 Profile  
 
 Post subject: Re: abortftpfile hangs program sometime
PostPosted: Mon Apr 02, 2012 3:43 pm 
Offline
Enthusiast
Enthusiast

Joined: Thu Aug 26, 2010 8:26 am
Posts: 111
also:

Syntax

Result = CheckFTPConnection(#Ftp)
Description

Checks if the specified #Ftp connection is still connected to the server.
Parameters

#Ftp Specifies the FTP connection to use.

Return value

Returns nonzero if the connection is still open and zero if the server closed the connection.

I am getting always zero while sending data to ftp server. I will try now width isftp to check connection.

ps: Win 7 32bit, server is pureftp, last PB (not beta).

_________________
Registered user of PB (on Kubuntu 12.04 64bit & Win7 32bit)


Top
 Profile  
 
 Post subject: Re: abortftpfile hangs program sometime
PostPosted: Tue Apr 03, 2012 8:18 am 
Offline
New User
New User

Joined: Sat Mar 12, 2011 9:20 pm
Posts: 5
Hi,
to increase the chances of getting an answer, you should keep to
"Please read before submitting a bug report" point 8.

_________________
PureBasic 4.51 (x86), Windows 7 (32bit), T5600


Top
 Profile  
 
 Post subject: Re: abortftpfile hangs program sometime
PostPosted: Tue Apr 03, 2012 8:48 am 
Offline
Enthusiast
Enthusiast

Joined: Thu Aug 26, 2010 8:26 am
Posts: 111
I understand reason but i can not send my source here. It will be part of program that we sell.

I add few lines of code like a watchdog:
"if ftprogress in last second (after 1st second) is less than 1KB and ftprogress is less than result mark this try as failure and restart sending"
I thought that time watchdog(original idea) should be enough but ftpabort(ftpclose) is not working when sendftp is stuck.

testing now....

ps: i still think that checkftpconnection is not working and sendftpdata (in background) can stuck (freeze program).

_________________
Registered user of PB (on Kubuntu 12.04 64bit & Win7 32bit)


Top
 Profile  
 
 Post subject: Re: abortftpfile hangs program sometime
PostPosted: Wed Apr 04, 2012 8:19 am 
Offline
Enthusiast
Enthusiast

Joined: Thu Aug 26, 2010 8:26 am
Posts: 111
finally i add a thread watchdog and "add on error support line" and now it works (quiting when ftp fails). i used this trick in linux version of my squid redirector.

but.... ftp (ul in my case; in background) is not bulletproof when internet is under heavy load!

_________________
Registered user of PB (on Kubuntu 12.04 64bit & Win7 32bit)


Top
 Profile  
 
 Post subject: Re: abortftpfile hangs program sometime
PostPosted: Mon Apr 09, 2012 11:22 am 
Offline
Administrator
Administrator

Joined: Fri May 17, 2002 4:39 pm
Posts: 8868
Location: France
We need more information to handle this bug, could you provide some ?


Top
 Profile  
 
 Post subject: Re: abortftpfile hangs program sometime
PostPosted: Tue Apr 10, 2012 7:54 am 
Offline
Enthusiast
Enthusiast

Joined: Thu Aug 26, 2010 8:26 am
Posts: 111
All my domains are on lastehosting. they use pureftp on centos. Trying to get another provider now.... and i will get more info.
What i am getting when using sendftpfile (in background), ftpprogress reach a certain number and sending stalls and when u try to abortftp or closeftp u got non responding program.
It happens when internet usage is high.
Another thing my hosting (latehosting) sad they check ftp resume(yeah i know that pb doesn't support this) but i still have no resume (winscp and similar programs). Maybe they do not know buissness, maybe pureftp server is pretty old, choose 3rd... :)
ps: ftpcheckconnection not working also (didn't try isftp or this is only for 1st handshaking after openftp)

_________________
Registered user of PB (on Kubuntu 12.04 64bit & Win7 32bit)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye