mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 13:19:05 +00:00
LibIPC: Don't verify that socket is closed when getting EPIPE on send
We can get an EPIPE when the other end of the connection closes, such as when switching to a new WebContent process due to site isolation.
This commit is contained in:
parent
b4f34ee860
commit
16f72ca36c
Notes:
github-actions[bot]
2025-04-30 15:13:34 +00:00
Author: https://github.com/ADKaster
Commit: 16f72ca36c
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4527
Reviewed-by: https://github.com/trflynn89 ✅
1 changed files with 1 additions and 2 deletions
|
@ -73,8 +73,7 @@ TransportSocket::TransportSocket(NonnullOwnPtr<Core::LocalSocket> socket)
|
|||
auto result = send_message(*m_socket, remaining_to_send_bytes, fds);
|
||||
if (result.is_error()) {
|
||||
if (result.error().is_errno() && result.error().code() == EPIPE) {
|
||||
// The socket is closed, we can stop sending.
|
||||
VERIFY(!m_socket->is_open());
|
||||
// The socket is closed from the other end, we can stop sending.
|
||||
break;
|
||||
}
|
||||
dbgln("TransportSocket::send_thread: {}", result.error());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue