From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Reusable free code: Simple components - MODBUS.Synchronos.connect not returning Date: Tue, 28 Aug 2018 18:03:26 +0200 Organization: Aioe.org NNTP Server Message-ID: References: NNTP-Posting-Host: IzvqdhUtDGKIMCldyDtZ+w.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 Content-Language: en-US X-Notice: Filtered by postfilter v. 0.8.3 X-Mozilla-News-Host: news://news.aioe.org Xref: reader02.eternal-september.org comp.lang.ada:54282 Date: 2018-08-28T18:03:26+02:00 List-Id: 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