CPU pegged at 100 with sample 5 - WeOnlyDo Discussion board

CPU pegged at 100 with sample 5 (General questions)

by deejayspinz, Saturday, December 15, 2007, 04:11 (6188 days ago)

Hi,

I am having challenges with the VB sample #5. I have gotten it to connect to the server and have had success uploading small files (< 10k) to the server using the code below. However, when I set it to upload a file larger than ~10k, it pegs the CPU at 100 and hangs.. No part of the file is uploaded and I have to kill the vb app. Is there some parameter that I am missing?

wodHttp1.Timeout = 5
wodHttp1.URL = https://www.server.com
wodHttp1.Authentication = AuthAutomatic
wodHttp1.ProxyAuthentication = AuthAutomatic
wodHttp1.AutoRedirect = True
wodHttp1.Blocking = False
wodHttp1.Login = username
wodHttp1.Password = pwd



wodHttp1.Request.FormUpload.AddFile TheFile , c: emp est.txt
wodHttp1.Request.FormUpload.Add Name , Test

wodHttp1.Post /subfolder/

Re: CPU pegged at 100 with sample 5

by woddrazen, Saturday, December 15, 2007, 10:47 (6188 days ago) @ deejayspinz

Hi,


Seems that I cannot duplicate your issue. CPU is at 0 all the time on my side. What happened if you increase Timeout Property value and change Blocking Property to True?

Any chance we can connect to your server and duplicate your issue? You can send your private information to techsupport@weonlydo.com

Let us know how it goes.


Regards,
Drazen

Re: CPU pegged at 100 with sample 5

by deejayspinz, Saturday, December 15, 2007, 13:21 (6188 days ago) @ woddrazen

Hi,


Seems that I cannot duplicate your issue. CPU is at 0 all the time on my side. What happened if you increase Timeout Property value and change Blocking Property to True?

Any chance we can connect to your server and duplicate your issue? You can send your private information to techsupport@weonlydo.com

Let us know how it goes.


Regards,
Drazen

Drazen, I have tried to increase the timeout as well as setting Blocking=True. Still the same issue. As indicated, I have sent the code to you.

Thx.

Re: CPU pegged at 100 with sample 5

by wodSupport, Sunday, December 16, 2007, 12:11 (6187 days ago) @ deejayspinz

I believe this is now fixed. If you're licensed user, please request update. If you still use evaluation, please download it again from our website and try it out.

Most probably error will be reported from the server - but that is ok, since this is what occurred before 10 CPU fix, we just didn't throw an error to you before.

Let us know how it goes.

Regards,
Kreso

Re: CPU pegged at 100 with sample 5

by deejayspinz, Monday, December 24, 2007, 14:10 (6179 days ago) @ wodSupport

I believe this is now fixed. If you're licensed user, please request update. If you still use evaluation, please download it again from our website and try it out.

Most probably error will be reported from the server - but that is ok, since this is what occurred before 10 CPU fix, we just didn't throw an error to you before.

Let us know how it goes.

Regards,
Kreso

Thanks to the good folks at WeOnlyDo, I have this working now. For anyone that is trying to get this working on GlobalScape's EFT server, here is a sample that works for me (using https):

set wodHttp = Server.CreateObject( WeOnlyDo.wodHttpDLXCom.1 )
wodHttp.LicenseKey = XXXXXXXXXXXXXX
wodHttp.URL = https://ftpserver.domain.com
wodHttp.Authentication = 2
wodHttp.Blocking = 1
wodHttp.AutoRedirect = 1
wodHttp.Login = FTPUserLogin
wodHttp.Password = FTPUserPassword
wodHttp.KeepAlive = Always
wodHttp.Request.Filename = CStr(FileToUpload) 'include full path eg c: empfile.zip

wodHttp.Put CStr(FTPFolderAndFile) 'include destination FTP folder and filename eg /ftpuserfolder/file.zip