[all-commits] [llvm/llvm-project] 76321b: [llvm][Support] Implement raw_socket_stream::read ...

Connor Sughrue via All-commits all-commits at lists.llvm.org
Sun Jul 21 20:50:49 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 76321b9f08ef31a2b8ca26f7522aee511a05f7a8
      https://github.com/llvm/llvm-project/commit/76321b9f08ef31a2b8ca26f7522aee511a05f7a8
  Author: Connor Sughrue <55301806+cpsughrue at users.noreply.github.com>
  Date:   2024-07-21 (Sun, 21 Jul 2024)

  Changed paths:
    M llvm/include/llvm/Support/raw_socket_stream.h
    M llvm/lib/Support/raw_socket_stream.cpp
    M llvm/unittests/Support/raw_socket_stream_test.cpp

  Log Message:
  -----------
  [llvm][Support] Implement raw_socket_stream::read with optional timeout (#92308)

This PR implements `raw_socket_stream::read`, which overloads the base
class `raw_fd_stream::read`. `raw_socket_stream::read` provides a way to
timeout the underlying `::read`. The timeout functionality was not added
to `raw_fd_stream::read` to avoid needlessly increasing compile times
and allow for convenient code reuse with `raw_socket_stream::accept`,
which also requires timeout functionality. This PR supports the module
build daemon and will help guarantee it never becomes a zombie process.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list