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 X-Received: by 10.55.128.67 with SMTP id b64mr4068794qkd.40.1509025382833; Thu, 26 Oct 2017 06:43:02 -0700 (PDT) X-Received: by 10.157.0.7 with SMTP id 7mr214489ota.14.1509025382802; Thu, 26 Oct 2017 06:43:02 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!nntp-feed.chiark.greenend.org.uk!ewrotcd!news.etla.org!feeder.erje.net!2.eu.feeder.erje.net!border1.nntp.ams1.giganews.com!nntp.giganews.com!peer02.ams1!peer.ams1.xlned.com!news.xlned.com!peer01.fr7!futter-mich.highwinds-media.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!k31no2325095qta.1!news-out.google.com!v14ni740qtc.0!nntp.google.com!z50no2323924qtj.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 26 Oct 2017 06:43:02 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=155.148.6.150; posting-account=lJ3JNwoAAAAQfH3VV9vttJLkThaxtTfC NNTP-Posting-Host: 155.148.6.150 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <12e29335-1167-46f2-a45c-d3fa2cace016@googlegroups.com> Subject: Re: alternative for buggy accept_socket to create a non-blocking version From: Shark8 Injection-Date: Thu, 26 Oct 2017 13:43:02 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Received-Body-CRC: 307216731 X-Received-Bytes: 2031 Xref: news.eternal-september.org comp.lang.ada:48594 Date: 2017-10-26T06:43:02-07:00 List-Id: On Wednesday, October 25, 2017 at 1:14:47 PM UTC-6, Matt Borchers wrote: > Well, I should have thought of this solution sooner. I downloaded the GN= AT 6.3.2 version (where the bug is fixed) and I copied all of the execution= path of the non-blocking accept_socket subprogram into a single subroutine= in a new child package of GNAT.Sockets. >=20 > My first few tests are successful. You could try using a Generic Package taking a TIMEOUT formal parameter (an= d if you're using task-interfaces, an interface to your socket-task) then s= imply have one task do your processing and the other send an abort to the o= ther task if/when the timeout occurs.