indy10

Indy error 10038 “Socket operation on non-socket” after 61 seconds of inactivity

给你一囗甜甜゛ 提交于 2019-12-01 12:30:30
I want to download some large files (GB) from an FTP server. The download of the first file always works. Then when trying to get the second file I get: "Socket Error # 10038. Socket operation on non-socket." The error is on 'Get'. After 'Get' I see these messages (via FTP status event): Starting FTP transfer Disconnecting. Disconnected. The code is like this: {pseudo-code} for 1 to AllFiles do begin if Connect2FTP then begin FTP.Get(Name, GzFile, TRUE, FALSE); <--- Socket operation on non-socket" error (I also get EIdConnClosedGracefully 'Connection Closed Gracefully' in IDE, F9 will resume

Indy error 10038 “Socket operation on non-socket” after 61 seconds of inactivity

女生的网名这么多〃 提交于 2019-12-01 12:29:34
问题 I want to download some large files (GB) from an FTP server. The download of the first file always works. Then when trying to get the second file I get: "Socket Error # 10038. Socket operation on non-socket." The error is on 'Get'. After 'Get' I see these messages (via FTP status event): Starting FTP transfer Disconnecting. Disconnected. The code is like this: {pseudo-code} for 1 to AllFiles do begin if Connect2FTP then begin FTP.Get(Name, GzFile, TRUE, FALSE); <--- Socket operation on non

File upload fails, when posting with Indy and filename contains Greek characters

拜拜、爱过 提交于 2019-12-01 08:38:45
问题 I am trying to implement a POST to a web service. I need to send a file whose type is variable ( .docx , .pdf , .txt ) along with a JSON formatted string. I have manage to post files successfully with code similar to the following: procedure DoRequest; var Http: TIdHTTP; Params: TIdMultipartFormDataStream; RequestStream, ResponseStream: TStringStream; JRequest, JResponse: TJSONObject; url: string; begin url := 'some_custom_service' JRequest := TJSONObject.Create; JResponse := TJSONObject

INDY 10 TCP Server - Combine with non thread safe VCL Code

ε祈祈猫儿з 提交于 2019-12-01 04:12:34
问题 VCL is not thread safe. Therefore I guess it is not a good idea to write information to the gui in the INDY 10 TCP server.execute(...) function . How to send information from the server execute to the VCL ? I need to modify a TBitmap inside a tcpserver.execute function. How to make that thread safe ? 回答1: Write stuff to the VCL thread from Indy the same way to write stuff to the VCL thread from anywhere else. Common options include TThread.Synchronize and TThread.Queue . Modifying a

Delphi Indy Ping Error 10040

断了今生、忘了曾经 提交于 2019-11-30 15:42:15
问题 I have a small piece of code that checks if a computer is alive by pinging it. We use to have a room with 40 computer and I wanna check remotely through my program which on is alive. Therefore I wrote a little ping function using indy function TMainForm.Ping(const AHost : string) : Boolean; var MyIdIcmpClient : TIdIcmpClient; begin Result := True; MyIdIcmpClient := TIdIcmpClient.Create(nil); MyIdIcmpClient.ReceiveTimeout := 200; MyIdIcmpClient.Host := AHost; try MyIdIcmpClient.Ping;

Delphi Indy Ping Error 10040

大城市里の小女人 提交于 2019-11-30 15:07:24
I have a small piece of code that checks if a computer is alive by pinging it. We use to have a room with 40 computer and I wanna check remotely through my program which on is alive. Therefore I wrote a little ping function using indy function TMainForm.Ping(const AHost : string) : Boolean; var MyIdIcmpClient : TIdIcmpClient; begin Result := True; MyIdIcmpClient := TIdIcmpClient.Create(nil); MyIdIcmpClient.ReceiveTimeout := 200; MyIdIcmpClient.Host := AHost; try MyIdIcmpClient.Ping; Application.ProcessMessages; except Result := False; MyIdIcmpClient.Free; Exit; end; if MyIdIcmpClient

Indy TCP Client/Server with the client acting as a server

∥☆過路亽.° 提交于 2019-11-30 04:50:37
How can Indy's TIdTCPClient and TIdTCPServer be used in the following scenario: Client ---------- initate connection -----------> Server ... Client <---------------command------------------- Server Client ----------------response-----------------> Server ... Client <---------------command------------------- Server Client ----------------response-----------------> Server The client initiates the connection , but acts as a "server" (waiting for commands and executing them). The OnExecute approach of TIdTCPServer does not work well in this case (at least I am not getting it to work well). How

Using Indy 10 IdHTTP with TLS 1.2

╄→гoц情女王★ 提交于 2019-11-30 04:02:29
问题 Im using Delphi XE2 with Indy 10.5.8.0 Currently i need to change a connection to one of our server to use only TLS 1.2, at the moment we are using TLS 1.0 As handler for IdHTTP , IdSSLIOHandlerSocketOpenSSL is being used. I tried changing the Method to sslvTLSv1_2 and it does not work as the connection gives the next error: "Error connecting with SSL. error:1409442E:SSL routine:SSL3_READ_BYTES:tlsv 1 alert protocol version" Im using the Default Cipher list, not sure if i need any specific

EIdOSSLUnderlyingCryptoError Exception

穿精又带淫゛_ 提交于 2019-11-29 22:59:34
问题 I am using Indy (IdHTTP, OpenSSL). I use this simple code to download a page var IdHTTP: TIdHTTP; begin IdHTTP:=TIdHTTP.Create; try IdHTTP.Get('https://ezfile.ch/?m=help&a=tos'); finally IdHTTP.Free; end; end; It returns: EIdOSSLUnderlyingCryptoError exception "Error connecting with SSL. error:14094438:SSL routines:SSL3_READ_BYTES:tlsv1 alert internal error" The site uses TLS 1.1, AES_128_CBC_SHA1, ECDHE-ECDSA. It should be easily reproducible. Tried with various Delphi versions, Indy 10.6.2,

Update to latest Indy TCP library version

。_饼干妹妹 提交于 2019-11-29 15:24:27
I'm using DELPHI XE2 since E/2011. I checked now the implemented INDY Lib shipped with my compiler, and found gsIdVersion = '10.5.8.0'; If I want to upgrade to the latest INDY version, I use Indy download link here I found LATEST INDY ZIP FILE . The date of the file is from today, the revision is is less then my installed indy version ID. bevore doing any further action, Can some help me and solve my version number confusion According to the subversion repo, the latest revision for Indy 10 is r4910. The ZIP file that you link to is named Indy10_4910.zip. So that is as up-to-date as you can be.