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,FREEMAIL_FROM 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!feeder.erje.net!2.eu.feeder.erje.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: =?UTF-8?Q?Karl_M=c3=bcller?= Newsgroups: comp.lang.ada Subject: Reusable free code: Simple components - MODBUS.Synchronos.connect not returning Date: Tue, 28 Aug 2018 10:04:02 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net jJYegcnXI5oF92eF3Md8qQ3v2br2Xf/1+ikmI+Sb04P+OOIZ8l Cancel-Lock: sha1:AnaNfXfnGt4M44G0qh9in+4gy7c= X-Mozilla-News-Host: news://News.Individual.DE:119 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 Content-Language: en-US Xref: reader02.eternal-september.org comp.lang.ada:54278 Date: 2018-08-28T10:04:02+02:00 List-Id: 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? Regards Karl