Forum > Networking and Web Programming
(SOLVED) (LNet) Firewall causing problems?
Almindor:
--- Quote from: cybersmyth on April 05, 2011, 03:32:42 pm ---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;
--- End quote ---
Thanks,
I added a procedure to handle sending stops in all cases including this one :)
Navigation
[0] Message Index
[*] Previous page