Giter VIP home page Giter VIP logo

Comments (3)

edsiper avatar edsiper commented on May 13, 2024

Trac update at 20100726T17:59:53: charlie_brown commented:

I was skimming through the code and it came to my attention the following commented snippet:

        /* for some reason, vmsplice is not working as expected for us, 
         * maybe we need to fix something here, at the moment
         * we will keep using writev to push the iovec struct to the pipe
         *
         *
         * n = vmsplice(fd, 
         *            (const struct iovec *) mk_io->io, 
         *            mk_io->iov_idx, 
         *            SPLICE_F_GIFT);
         * return n;
         */
  1. vmsplice's man page states that when the SPLICE_F_GIFT flag is present, the memory pointed by each iovec's iov_base MUST be aligned to page boundary:
    ''"Data must also be properly page aligned, both in memory and length."''
    which, if one dumps the iov_base addresses at run-time, they're not.

  2. BUT if we remove SPLICE_F_GIFT, the logger writes to the files with interleaved garbage from the response headers; I haven't checked why.

from monkey.

edsiper avatar edsiper commented on May 13, 2024

Trac update at 20110227T00:07:34:

  • edsiper changed milestone from "" to "Future Release"
  • edsiper changed priority from "major" to "minor"

from monkey.

edsiper avatar edsiper commented on May 13, 2024

Trac update at 20110906T19:05:21:

  • davidlohr commented:

This code has been determined to be unapplicable and has already been removed.

  • davidlohr changed resolution from "" to "wontfix"
  • davidlohr changed status from "new" to "closed"

from monkey.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.