Recent

Author Topic: LNET versus INDY versus Synapse  (Read 54249 times)

Dibo

  • Hero Member
  • *****
  • Posts: 1048
Re: LNET versus INDY versus Synapse
« Reply #30 on: January 28, 2011, 08:03:01 pm »
So I suppose I must call HTTPClient.CallAction inside some loop like in lHTTP console demo? Sounds good but still doesn't work :/

Edit: Ok, I looked again to console demo and it uses TLHTTPClient instead of LCL TLHTTPClientComponent. Now it works :) . Thanks for tip marcov.
« Last Edit: January 28, 2011, 08:28:31 pm by Dibo »

Almindor

  • Sr. Member
  • ****
  • Posts: 412
    • http://www.astarot.tk
Re: LNET versus INDY versus Synapse
« Reply #31 on: January 31, 2011, 09:03:25 pm »
Dibo: can I close the bug then? I still haven't got around to getting in windows (... :D), if it was a LCL .dll/lib thing I think lNet/visual can't work like that (and anything else bound to LCL imo).

Dibo

  • Hero Member
  • *****
  • Posts: 1048
Re: LNET versus INDY versus Synapse
« Reply #32 on: January 31, 2011, 09:13:37 pm »
No problem, but had you read my last comment in this issue? I think the reason is that AppHandle is 0 in DLL but don't know why :P . I'm looking now for some eventer which work in DLL (AddEventHandler(HttpClient.Iterator.Handle...) doesn't work :/ ) . I think I just use loop in thread to CallAction.

Almindor

  • Sr. Member
  • ****
  • Posts: 412
    • http://www.astarot.tk
Re: LNET versus INDY versus Synapse
« Reply #33 on: February 02, 2011, 10:26:48 am »
Yes, but keep in mind that if you run .CallAction in a thread, ALL your On<anything> events assigned to lNet objects will also be called from within this thread!

Make sure to synchronize data operations you do with the data in the events.

xenblaise

  • Sr. Member
  • ****
  • Posts: 358
Re: LNET versus INDY versus Synapse
« Reply #34 on: February 12, 2011, 05:11:16 pm »
i choose what ever lazarus got the default package for networking task

jl

  • Full Member
  • ***
  • Posts: 178
Re: LNET versus INDY versus Synapse
« Reply #35 on: April 22, 2011, 06:19:22 am »
My order is:

1. LNet - if I can I always use this sockets (if I need TCP/IP it always win). Very fast and lightweight (good choice for mobile platform). Really cross platform (Windows, Windows mobile, Linux, MacOS, etc) Have no-blocking mode, but...

Hi Dibo, I'm now considering LNET.  Care to elaborate on the "but..."?  :)   

xenblaise

  • Sr. Member
  • ****
  • Posts: 358
Re: LNET versus INDY versus Synapse
« Reply #36 on: May 25, 2011, 06:44:41 pm »
 :o

avra

  • Hero Member
  • *****
  • Posts: 2514
    • Additional info
Re: LNET versus INDY versus Synapse
« Reply #37 on: May 26, 2011, 11:39:33 am »
I have made a custom OPC server that was getting it's data from polling some TCP server in 2008 with Delphi. It was an application that should work for months on Win2K3 server without interruption. Originally I have used AsyncPro TCP client, but after about every 2 weeks server crashed. I traced the problem to AsyncPro memory leaks. Then I have rewritten everything to Indy, and it was better but not good enough. Server crashed about every 2 months. Then I changed to Synapse. No problem ever since. To be fair I must repeat that it was 2008, and things may have changed since then.
ct2laz - Conversion between Lazarus and CodeTyphon
bithelpers - Bit manipulation for standard types
pasettimino - Siemens S7 PLC lib

JD

  • Hero Member
  • *****
  • Posts: 1848
Re: LNET versus INDY versus Synapse
« Reply #38 on: May 26, 2011, 12:23:51 pm »
I have made a custom OPC server that was getting it's data from polling some TCP server in 2008 with Delphi. It was an application that should work for months on Win2K3 server without interruption. Originally I have used AsyncPro TCP client, but after about every 2 weeks server crashed. I traced the problem to AsyncPro memory leaks. Then I have rewritten everything to Indy, and it was better but not good enough. Server crashed about every 2 months. Then I changed to Synapse. No problem ever since. To be fair I must repeat that it was 2008, and things may have changed since then.

If you can spare the time & the resources, try a more recent version of Indy.
http://lazarus.freepascal.org/index.php/topic,12772.0.html
I'm interested to know how it performs in your application
Windows - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe),
Linux Mint - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe)

mORMot; Zeos 8; SQLite, PostgreSQL & MariaDB; VirtualTreeView

Graeme

  • Hero Member
  • *****
  • Posts: 1428
    • Graeme on the web
Re: LNET versus INDY versus Synapse
« Reply #39 on: May 26, 2011, 08:36:15 pm »
I always use Indy.

What version of Indy do you use?
--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

JD

  • Hero Member
  • *****
  • Posts: 1848
Re: LNET versus INDY versus Synapse
« Reply #40 on: May 26, 2011, 09:28:32 pm »
I always use Indy.
What version of Indy do you use?

Use a recent version of Indy
http://lazarus.freepascal.org/index.php/topic,12772.0.html
That way, if you have problems, the Indy team will be better positioned to help you.

The official version for Lazarus is way too old. Download a newer version of Indy from http://indy.fulgan.com/ZIP/
« Last Edit: May 26, 2011, 09:35:08 pm by JD »
Windows - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe),
Linux Mint - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe)

mORMot; Zeos 8; SQLite, PostgreSQL & MariaDB; VirtualTreeView

avra

  • Hero Member
  • *****
  • Posts: 2514
    • Additional info
Re: LNET versus INDY versus Synapse
« Reply #41 on: May 27, 2011, 10:14:03 am »
Quote
If you can spare the time & the resources, try a more recent version of Indy.
http://lazarus.freepascal.org/index.php/topic,12772.0.html
I'm interested to know how it performs in your application
That application is a backbone in an important industrial process and I can not afford to get back to old version with less features and let it run for few months just to retest current Indy version. Sorry.
ct2laz - Conversion between Lazarus and CodeTyphon
bithelpers - Bit manipulation for standard types
pasettimino - Siemens S7 PLC lib

JD

  • Hero Member
  • *****
  • Posts: 1848
Re: LNET versus INDY versus Synapse
« Reply #42 on: May 27, 2011, 11:34:42 am »
Quote
If you can spare the time & the resources, try a more recent version of Indy.
http://lazarus.freepascal.org/index.php/topic,12772.0.html
I'm interested to know how it performs in your application
That application is a backbone in an important industrial process and I can not afford to get back to old version with less features and let it run for few months just to retest current Indy version. Sorry.

It's OK, I understand the limitation. Besides as they say "if it ain't broke, don't fix it".  :D
Windows - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe),
Linux Mint - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe)

mORMot; Zeos 8; SQLite, PostgreSQL & MariaDB; VirtualTreeView

jl

  • Full Member
  • ***
  • Posts: 178
Re: LNET versus INDY versus Synapse
« Reply #43 on: June 05, 2011, 07:49:42 pm »
Quote
If you can spare the time & the resources, try a more recent version of Indy.
http://lazarus.freepascal.org/index.php/topic,12772.0.html
I'm interested to know how it performs in your application
That application is a backbone in an important industrial process and I can not afford to get back to old version with less features and let it run for few months just to retest current Indy version. Sorry.

It's OK, I understand the limitation. Besides as they say "if it ain't broke, don't fix it".  :D


It might work for windows, but Indy 10.5 doesn't work for Linux due to iconv failure, you can find more details here - http://tech.dir.groups.yahoo.com/group/Indy-Dev-Public/messages.

I've decided to revert to Indy 10.2.0.3, which is relatively stable.
« Last Edit: June 05, 2011, 07:59:42 pm by touchring »

 

TinyPortal © 2005-2018