[PATCH v3] Define SO_RCVTIMEO and SO_SNDTIMEO.

2022-09-18 Thread Christopher Baines
These are important for reliable networking, since they prevent network operations from hanging indefinitely. * libguile/socket.c (scm_init_socket): Define SO_RCVTIMEO and SO_SNDTIMEO. (scm_getsockopt, scm_setsockopt): Include SO_RCVTIMEO and SO_SNDTIMEO in docstring and handle them. * doc/ref/pos

Re: [PATCH] Define SO_RCVTIMEO and SO_SNDTIMEO.

2022-09-18 Thread Christopher Baines
Thanks for the feedback Maxime, I obviously lost track of some things after letting this patch languish for a while. Maxime Devos writes: > On 17-09-2022 10:05, Christopher Baines wrote: >> + if (ioptname == SO_RCVTIMEO || ioptname == SO_SNDTIMEO) >> +{ >> + SCM_ASSERT (scm_is_pair (v

[PATCH v2] Define SO_RCVTIMEO and SO_SNDTIMEO.

2022-09-18 Thread Christopher Baines
These are important for reliable networking, since they prevent network operations from hanging indefinitely. * libguile/socket.c (scm_init_socket): Define SO_RCVTIMEO and SO_SNDTIMEO. (scm_getsockopt): Include SO_RCVTIMEO and SO_SNDTIMEO in docstring. (scm_setsockopt): Include SO_RCVTIMEO and SO_