comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Reusable free code: Simple components - MODBUS.Synchronos.connect not returning
Date: Tue, 28 Aug 2018 18:03:26 +0200
Date: 2018-08-28T18:03:26+02:00	[thread overview]
Message-ID: <pm3rof$1m0j$1@gioia.aioe.org> (raw)
In-Reply-To: fukdviFjd4aU1@mid.individual.net

On 2018-08-28 10:04, Karl Müller wrote:
> Hello,
> 
> it's my first contribution to this sophisticated newsgroup and I hope 
> I'm not disturbing too much.
> 
> Trying the Modbus test programs of the Simple components from Dmitry 
> Kazakov I made the experience that the MODBUS.Synchronos client is not 
> returning after calling the connect procedure. When I set the Timeout 
> value to 5 seconds the Tracer is writing and after that time the program 
> exits:
> 
> 127.0.0.1:1502 < --- Stop polling, nothing to send
> 127.0.0.1:1502 < +++ Resume polling, blocking timeout expired
> 127.0.0.1:1502 < --- Stop polling, nothing to send
> Worker task exiting
> raised 
> GNAT.SOCKETS.CONNECTION_STATE_MACHINE.MODBUS_CLIENT.SYNCHRONOUS.TIMEOUT_ERROR 
> : Connection timeout expired
> 
> To my suprise the MODBUS test program with multiple connections is 
> working as expected.
> 
> Is there anything I'm not aware off when using the 
> MODBUS_CLIENT.SYNCHRONOS?

A synchronous client blocks on Connect until the server accepts 
connection or else the timeout expires. Or do you mean something else?

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de

  reply	other threads:[~2018-08-28 16:03 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-28  8:04 Reusable free code: Simple components - MODBUS.Synchronos.connect not returning Karl Müller
2018-08-28 16:03 ` Dmitry A. Kazakov [this message]
2018-08-28 18:03   ` Karl Müller
2018-08-28 19:25     ` Dmitry A. Kazakov
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox