<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [GTK] Hangs when showing Google search results"
   href="https://bugs.webkit.org/show_bug.cgi?id=168699#c9">Comment # 9</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [GTK] Hangs when showing Google search results"
   href="https://bugs.webkit.org/show_bug.cgi?id=168699">bug 168699</a>
              from <span class="vcard"><a class="email" href="mailto:cgarcia&#64;igalia.com" title="Carlos Garcia Campos &lt;cgarcia&#64;igalia.com&gt;"> <span class="fn">Carlos Garcia Campos</span></a>
</span></b>
        <pre>(In reply to <a href="show_bug.cgi?id=168699#c8">comment #8</a>)
<span class="quote">&gt; Comment on <span class=""><a href="attachment.cgi?id=302509&amp;action=diff" name="attach_302509" title="Patch">attachment 302509</a> <a href="attachment.cgi?id=302509&amp;action=edit" title="Patch">[details]</a></span>
&gt; Patch
&gt; 
&gt; View in context:
&gt; <a href="https://bugs.webkit.org/attachment.cgi?id=302509&amp;action=review">https://bugs.webkit.org/attachment.cgi?id=302509&amp;action=review</a></span >

Thanks for the review Fuji!

<span class="quote">&gt; &gt; Source/WebKit2/ChangeLog:13
&gt; &gt; +        socket monitor as readSocketMonitor and adds another one for polling output. When sendsmg fails with
&gt; 
&gt; s/sendsmg/sendmsg/</span >

Oops

<span class="quote">&gt; &gt; Source/WebKit2/Platform/IPC/unix/ConnectionUnix.cpp:365
&gt; &gt; +bool Connection::sendOutputMessage(UnixMessage&amp; outputMessage)
&gt; 
&gt; Mac port uses unique_ptr. You don't use unique_ptr&lt;UnixMessage&gt; for
&gt; outputMessage for performance?</span >

Yes, the case of EWOULDBLOCK hardly ever happens, so only in that case I heap allocate the message to saved it.

<span class="quote">&gt; &gt; Source/WebKit2/Platform/IPC/unix/ConnectionUnix.cpp:458
&gt; &gt; +                            sendOutputMessage(*message);
&gt; 
&gt; You don't need to check the return value of sendOutputMessage?</span >

I'm assuming it won't fail because the poll said we can write without blocking. In any case, what we do is calling sendOutgoingMessages() that will return early if sendOutputMessage failed.

<span class="quote">&gt; &gt; Source/WebKit2/Platform/IPC/unix/UnixMessage.h:66
&gt; &gt; +class AttachmentInfo {
&gt; 
&gt; You don't need to move AttachmentInfo, too.</span >

Right.

<span class="quote">&gt; &gt; Source/WebKit2/Platform/IPC/unix/UnixMessage.h:114
&gt; &gt; +            memcpy(m_body, other.m_body, m_messageInfo.bodySize());
&gt; 
&gt; You don't need to copy the body if m_messageInfo.isMessageBodyIsOutOfLine().</span >

Good point!</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>