Re: [R-pkg-devel] socketConnection, delay when reading from

2021-12-08 Thread Ben Engbers
Hi Tomas, I saw that the attached file is missing, I therefore have added it below. In the examples in your reply from 11/27/21 8:05 PM, you use the command 'socketSelect(list(con2))'. I have replaced my Sys.sleep() command with 'socketSelect(list(conn))'. Execution-time for all the tests has

[R-pkg-devel] R/CRAN switch to UCRT on Windows

2021-12-08 Thread Tomas Kalibera
(My apologies for cross-posting to those reading also the R-devel mailing list) Please note an update concerning the support of UTF-8 as native encoding on Windows, which may at this point be of interest particularly to developers of packages with native code and to R users using R-devel (the

Re: [R-pkg-devel] socketConnection, delay when reading from

2021-12-08 Thread Ben Engbers
Op 08-12-2021 om 12:40 schreef Tomas Kalibera: On 12/8/21 12:20 PM, Ben Engbers wrote: Op 07-12-2021 om 23:49 schreef Ben Engbers: The new code, which now uses a non-blocking socket, takes less than 4 seconds to execute the 53 tests. Compared to the 120 seconds when using a blocking socket,

Re: [R-pkg-devel] socketConnection, delay when reading from

2021-12-08 Thread Tomas Kalibera
On 12/8/21 12:20 PM, Ben Engbers wrote: Op 07-12-2021 om 23:49 schreef Ben Engbers: After a long nightly session, I ended up with inserting a wait between sending the authentication nonce and reading the status byte. writeBin(auth, private$conn) Sys.sleep(.1) Accepted <- readBin(conn, what

Re: [R-pkg-devel] socketConnection, delay when reading from

2021-12-08 Thread Ben Engbers
Op 07-12-2021 om 23:49 schreef Ben Engbers: After a long nightly session, I ended up with inserting a wait between sending the authentication nonce and reading the status byte. writeBin(auth, private$conn) Sys.sleep(.1) Accepted <- readBin(conn, what = "raw", n = 1) The new code, which now us