Przeglądaj źródła

IPv4: Don't hold IPv4Socket lock when blocking on byte-buffered receive

Andreas Kling 5 lat temu
rodzic
commit
22d563b1aa
1 zmienionych plików z 0 dodań i 1 usunięć
  1. 0 1
      Kernel/Net/IPv4Socket.cpp

+ 0 - 1
Kernel/Net/IPv4Socket.cpp

@@ -256,7 +256,6 @@ ssize_t IPv4Socket::recvfrom(FileDescription& description, void* buffer, size_t
 #endif
 
     if (buffer_mode() == BufferMode::Bytes) {
-        LOCKER(lock());
         if (m_receive_buffer.is_empty()) {
             if (protocol_is_disconnected()) {
                 return 0;