lkml.org 
[lkml]   [2003]   [Jun]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: select for UNIX sockets?
    From
    Date
    Timothy Miller <miller@techsource.com> writes:

    > If you were to use blocking writes, and you sent too much data, then
    > you would block. If you were to use non-blocking writes, then the
    > socket would take as much data as it could, then return from write()
    > with an indication of how much data actually got sent. Then you call
    > select() again so as to wait for your next opportunity to send some
    > more of your data.

    This is all true in general but in this particular case of unix datagram
    sockets select (poll) is just buggy.
    --
    Krzysztof Halasa
    Network Administrator
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-03-22 13:36    [W:0.019 / U:32.184 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site