• Max Kellermann's avatar
    input_curl: use select() to eliminate busy loop during connect · e7c7e652
    Max Kellermann authored
    When decoder_run_song() (decoder_thread.c) waits for the input stream
    to become ready, it did that in a busy loop.  Add a select() call to
    input_curl_buffer() during connect/handshake (i.e. before the first
    chunk of body data was received), to let the CPU relax.
    e7c7e652
input_curl.c 19.2 KB