Ticket #842 (closed defect: fixed)

Opened 2 years ago

Last modified 1 year ago

network_writev.c makes invalid assumptions about writev

Reported by: dustin@spy.net Assigned to: jan
Priority: normal Milestone:
Component: core Version: 1.4.11
Severity: normal Keywords:
Cc: Blocking:
Need Feedback:

Description

network_writev.c defines UIO_MAXIOV for various operating systems. In my case (IRIX 6.2), the value that was specified was incorrect, causing an EINVAL during a large writev.

I think the correct thing to do here is use sysconf to determine the correct value for the OS at runtime (since it can also vary).

Example:

#include <stdio.h>
#include <unistd.h>

int main(int argc, char **argv) {
        printf("_SC_IOV_MAX: %d\n", sysconf(_SC_IOV_MAX));
        return 0;
}

Attachments

Change History

10/07/2006 05:34:17 PM changed by jan

  • status changed from new to closed.
  • resolution set to fixed.

fixed in 1.4.12


Add/Change #842 (network_writev.c makes invalid assumptions about writev)




Change Properties
Action