by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Fedor Indutny
    @indutny
    anyone around?
    Andrius Bentkus
    @txdv
    lol
    is IRC really that bad?
    Andrius Bentkus
    @txdv
    Much happening here
    :shipit:
    Severen Redwood
    @severen
    :shipit:
    Wish more people used Gitter
    Peter Atashian
    @retep998
    Too bad everyone just uses IRC
    Severen Redwood
    @severen
    Yep, much prefer Gitter
    Plus, I can use emoji :wink:
    Peter Atashian
    @retep998
    I really like that messages are archived in the cloud
    and yeah, formatting and stuff
    Severen Redwood
    @severen
    +1 to that
    Aria Stewart
    @aredridel
    Heh. I keep accidentally leaving channels and being unable to find them again in the UI for gitter.
    It leaves a lot to be desired.
    nodecraic
    @webworkio
    hey, if anyone has any remote remote , designer, DevOps or Sysadmin jobs they can post them at http://webwork.io
    麻布十番
    @azabujuban

    Hello, libuv beginner here
    My test application creates TCP connections to an HTTP server, sends a GET request upon connection and begins reading stream. It really doesn't care what's inside the stream so it always passes the same buffer to alloc_cb (never actually calls malloc).

    This seems to be working (the HTTP server sends data to all these connections). My problem is that this test application takes 100% of one core (i'm running the test on a Mac).

    I'm using the default loop and tried running uv_run both with DEFAULT and RUN_ONCE

    Any ideas?

    sledgeh
    @sledgeh

    nread may be zero if there is no more data to be read. If addr is NULL, it indicates there is nothing to read (the callback shouldn’t do anything), if not NULL, it indicates that an empty datagram was received from the host at addr. The flags parameter may be UV_UDP_PARTIAL if the buffer provided by your allocator was not large enough to hold the data. In this case the OS will discard the data that could not fit (That’s UDP for you!).

    When and why I can receive such callback?

    Andrius Bentkus
    @txdv
    @sledgeh you can send on linux empty udp packets
    if you dont care about this, someone might send you an empty packet and you would just close your udp handle
    Henri Tuhola
    @cheery
    I could use some help in improving the use of this library in https://leverlanguage.com/
    For example, since the libuv calls don't go across multiple threads, what I'm supposed to do since I need multiple threads anyway?
    Oh and I would have liked to pass file handles with UNIX sockets.
    The handles provided by vkGetMemoryFdKHX seem to be identified as UV_FILE by guess_handle()
    Henri Tuhola
    @cheery
    Trying to pass file handles around via binding a Pipe in unix-style and then accept()thing the client and trying to query pending handles will crash.
    I will try with uv_spawn next, but it'll take little bit of effort to implement the support for that.
    Henri Tuhola
    @cheery
    Ok. That crashing with unix-style pipes was my own damn fault. utf8 decoding buffer overread.
    Henri Tuhola
    @cheery
    The receiving side reports the vkGetMemoryFdKHX files as UNKNOWN_HANDLEs.
    I'll re-open them as pipes and see what I'll get.
    Henri Tuhola
    @cheery
    I report success.
    I got a file handle.. at least some file handle this way.
    Soon I'm going to see if it's garbage or whether it fits into the leg of a GPU.
    Ad34
    @ad34
    Hello , I m currently working on a windows game project with use libuv (oculus) , and we have a possible port to sony ps4, anyone ever tried to compile libuv on ps4? any advice? thanks
    Andrius Bentkus
    @txdv
    Try to compile it?
    Ad34
    @ad34
    @txdv yep it s in the pipe, will send feedback here when we start the work on this
    sourcevault
    @sourcevault

    I have two libuv question that I hope someone can help me with..

    • What is mechanism to send data from the eventLoop thread to some work that has been queued using uv_queue_work in the thread pool ? essentially the opposite of what uv_async_send does which if I am not mistaken is to send information back to the eventLoop.
    • will a queued blocking call passed to the threadpool under any circunstance change its C++ thread id ?

    Thanks a tonne !

    sourcevault
    @sourcevault
    Network libuv saved
    Server libuv@irc.freenode.org saved
    Looking up libuv@irc.freenode.org
    Unable to connect server libuv@irc.freenode.org port 6667 [Name or service not known]
    I am trying to join the libuv IRC channel - could someone help me with it ?
    Adarsh Saraogi
    @adarshsaraogi
    any one who contribute to libuv
    Tim Caswell
    @creationix

    @indutny Do you know who would know about TCP packet coalescing? Is this a thing linux kernels do? Does libuv do it anywhere?

    For context, I'm trying to find the root cause for a performance issue in MagicScript where some devices get data callbacks up to 64k each, while other devices get them around 1.2kb (typical MTU size for TCP packets)