<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>46946</bug_id>
          
          <creation_ts>2010-09-30 17:30:49 -0700</creation_ts>
          <short_desc>The WebSocket server should flush its logs</short_desc>
          <delta_ts>2010-09-30 23:41:37 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>New Bugs</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Other</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Adam Barth">abarth</reporter>
          <assigned_to name="Adam Barth">abarth</assigned_to>
          <cc>commit-queue</cc>
    
    <cc>eric</cc>
    
    <cc>ukai</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>287956</commentid>
    <comment_count>0</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2010-09-30 17:30:49 -0700</bug_when>
    <thetext>The WebSocket server should flush its logs</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>287957</commentid>
    <comment_count>1</comment_count>
      <attachid>69403</attachid>
    <who name="Adam Barth">abarth</who>
    <bug_when>2010-09-30 17:32:29 -0700</bug_when>
    <thetext>Created attachment 69403
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>287959</commentid>
    <comment_count>2</comment_count>
      <attachid>69403</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-09-30 17:36:23 -0700</bug_when>
    <thetext>Comment on attachment 69403
Patch

I feel like this might get us into other trouble.

It seems the real fix is to fix the third_party code we&apos;re using a websocket server.

http://docs.python.org/using/cmdline.html#envvar-PYTHONUNBUFFERED is another way to do the same thing.  Maybe that&apos;s clearer?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>287960</commentid>
    <comment_count>3</comment_count>
      <attachid>69403</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-09-30 17:38:30 -0700</bug_when>
    <thetext>Comment on attachment 69403
Patch

Seems this should have a FIXME to remove the -u once the third_party stuff is fixed.  Or maybe this is the right long-term solution?  Unclear.  I guess it only affects stdout, stdin, and stderr.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>287968</commentid>
    <comment_count>4</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2010-09-30 17:50:30 -0700</bug_when>
    <thetext>It&apos;s not a work around for third_party stuff.  It&apos;s because we call terminate process on the server instead of letting it shutdown gracefully.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>287969</commentid>
    <comment_count>5</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2010-09-30 17:51:53 -0700</bug_when>
    <thetext>Environment variables are sadness.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>288077</commentid>
    <comment_count>6</comment_count>
      <attachid>69403</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-09-30 23:41:32 -0700</bug_when>
    <thetext>Comment on attachment 69403
Patch

Clearing flags on attachment: 69403

Committed r68866: &lt;http://trac.webkit.org/changeset/68866&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>288078</commentid>
    <comment_count>7</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-09-30 23:41:37 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>69403</attachid>
            <date>2010-09-30 17:32:29 -0700</date>
            <delta_ts>2010-09-30 23:41:32 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-46946-20100930173228.patch</filename>
            <type>text/plain</type>
            <size>1529</size>
            <attacher name="Adam Barth">abarth</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYktpdFRvb2xzL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBXZWJLaXRUb29scy9D
aGFuZ2VMb2cJKHJldmlzaW9uIDY4ODU0KQorKysgV2ViS2l0VG9vbHMvQ2hhbmdlTG9nCSh3b3Jr
aW5nIGNvcHkpCkBAIC0xLDMgKzEsMTYgQEAKKzIwMTAtMDktMzAgIEFkYW0gQmFydGggIDxhYmFy
dGhAd2Via2l0Lm9yZz4KKworICAgICAgICBSZXZpZXdlZCBieSBOT0JPRFkgKE9PUFMhKS4KKwor
ICAgICAgICBUaGUgV2ViU29ja2V0IHNlcnZlciBzaG91bGQgZmx1c2ggaXRzIGxvZ3MKKyAgICAg
ICAgaHR0cHM6Ly9idWdzLndlYmtpdC5vcmcvc2hvd19idWcuY2dpP2lkPTQ2OTQ2CisKKyAgICAg
ICAgVGhlIFdlYlNvY2tldCBzZXJ2ZXIgbG9ncyBhcmUgdHJ1bmNhdGVkIGJlY2F1c2UgdGhlIGRy
aXZlciBqdXN0CisgICAgICAgIHRlcm1pbmF0ZXMgdGhlIGNoaWxkLiAgSXQgc2hvdWxkIHJ1biBQ
eXRob24gd2l0aG91dCBidWZmZXJpbmcgc28gd2UgY2FuCisgICAgICAgIHNlZSB0aGUgZW5kIG9m
IHRoZSBsb2cuCisKKyAgICAgICAgKiBTY3JpcHRzL3dlYmtpdHB5L2xheW91dF90ZXN0cy9wb3J0
L3dlYnNvY2tldF9zZXJ2ZXIucHk6CisKIDIwMTAtMDktMj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kb2N1bWVudC1yb290Jywgc2VsZi5fbGF5b3V0X3Rlc3RzLAo=
</data>

          </attachment>
      

    </bug>

</bugzilla>