Forum > Networking and Web Programming
(SOLVED) (LNet) Firewall causing problems?
Almindor:
Is the FTP server you have problems with public? I can try to debug the issue but I need a reproducable case.
jixian.yang:
McAfee is a greate defender. If it is stopped, the access protection (include but not limited to net operation) still work. Stop all of the McAfee services and try again, maybe there will be a different result.
Almindor:
Is there a free trial for the mcafree you're using? I can try it with my XP setup at home but I need exacts to get it repeated.
Thanks
cybersmyth:
I've looked and the ISP does not have an anonymous setup. But I have tried my work-around with several FTP servers and it appears to work really well.
I don't think McAfee has a free version of their total protection service, which is what I'm using. But I've disabled the firewall and the errors appear to have gone away. I've been doing further stress testing, but I'm pretty confident that it's a problem with is McAfee and it keeps popping up because every time I recompile McAfee sees my application as a new program trying to get internet access. I think once I have it finished and I tell McAfee to allow it internet access, the problem will go away. I'll keep you posted.
On another note, I've been working on fault tolerances in my app and have a small suggestion for lNet's lftp.pp. Currently when a file is sending and there is a network outage, the ftp client eventually disconnected, but the file that was being uploaded remains locked.
Currently the code is:
--- Code: Pascal [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---procedure TLFTPClient.OnControlDs(aSocket: TLSocket);begin if Assigned(FOnError) then FOnError('Connection lost', aSocket);end;
I changed it to this, to free up the file and it appears to work:
--- Code: Pascal [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---procedure TLFTPClient.OnControlDs(aSocket: TLSocket);begin if Assigned(FOnError) then FOnError('Connection lost', aSocket); if Assigned(FStoreFile) then FreeAndNil(FStoreFile);end;
cybersmyth:
I finally tracked it down! It was totally poor programming on my part. My app builds a queue of FTP and file manager actions to preform. One of the common things is for it to upload and then delete so the delete happens right after the upload finishes.
Every now and then, very rarely, the delete would get triggered before the upload was totally finished so from what I can tell the delete happened right in that millisecond where lnet was reading it's last packet of bytes.
I don't know if McAfee had anything at all to do with it or if maybe it slowed the send down to a small degree? But in any event, I put a step between finishing the upload and deleting to make sure it's finished up.
Navigation
[0] Message Index
[#] Next page
[*] Previous page