<?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>141191</bug_id>
          
          <creation_ts>2015-02-02 22:12:23 -0800</creation_ts>
          <short_desc>[Win] Attempt to improve reliability of HTTP service</short_desc>
          <delta_ts>2015-02-03 09:39:03 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Tools / Tests</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</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="Brent Fulgham">bfulgham</reporter>
          <assigned_to name="Brent Fulgham">bfulgham</assigned_to>
          <cc>ap</cc>
    
    <cc>bfulgham</cc>
    
    <cc>commit-queue</cc>
    
    <cc>glenn</cc>
    
    <cc>rniwa</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1066371</commentid>
    <comment_count>0</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2015-02-02 22:12:23 -0800</bug_when>
    <thetext>The Windows test bots are periodically getting stuck in a mode where the httpd server is leaving a pidfile around. When this happens on Windows, the existing recovery code doesn&apos;t really work properly; I think this is primarily because webkitpy doesn&apos;t provide code to check for a running Windows PID, so the fallback code that tries to decide if a server is really running is just a no-op.

This patch does two things:

1. Instead of using the Cygwin /tmp folder to hold the PID file, it switches to using the XAMPP&apos;s standard file location. Since Apache is running as a Windows Service there is some confusing interactions with Windows vs. Cygwin file ownership. I am hoping that leaving this file where the XAMPP build (and Windows service) expects it to live.

2. Since the Windows webkitpy implementation doesn&apos;t actually check whether the PID is actually running, we skip the code path where the abandoned PID file is deleted. This patch makes sure we delete the abandoned file in the case where asking httpd to stop (which will do nothing if it wasn&apos;t running) doesn&apos;t cause the file to go away.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1066375</commentid>
    <comment_count>1</comment_count>
      <attachid>245927</attachid>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2015-02-02 22:15:29 -0800</bug_when>
    <thetext>Created attachment 245927
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1066460</commentid>
    <comment_count>2</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2015-02-03 09:39:03 -0800</bug_when>
    <thetext>Committed r179550: &lt;http://trac.webkit.org/changeset/179550&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>245927</attachid>
            <date>2015-02-02 22:15:29 -0800</date>
            <delta_ts>2015-02-03 08:46:29 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-141191-20150202222235.patch</filename>
            <type>text/plain</type>
            <size>2254</size>
            <attacher name="Brent Fulgham">bfulgham</attacher>
            
              <data encoding="base64">SW5kZXg6IFRvb2xzL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBUb29scy9DaGFuZ2VMb2cJKHJl
dmlzaW9uIDE3OTU0MCkKKysrIFRvb2xzL0NoYW5nZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwz
ICsxLDE1IEBACisyMDE1LTAyLTAyICBCcmVudCBGdWxnaGFtICA8YmZ1bGdoYW1AYXBwbGUuY29t
PgorCisgICAgICAgIFtXaW5dIEF0dGVtcHQ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yIGZvciB0aGUKICAgICAgICAg
IyBwaWQgZmlsZSB0byBiZSByZW1vdmVkLgogICAgICAgICBpZiBub3Qgc2VsZi5fd2FpdF9mb3Jf
YWN0aW9uKGxhbWJkYTogbm90IHNlbGYuX2ZpbGVzeXN0ZW0uZXhpc3RzKHNlbGYuX3BpZF9maWxl
KSk6CisgICAgICAgICAgICBpZiBzZWxmLl9wb3J0X29iai5ob3N0LnBsYXRmb3JtLmlzX3dpbigp
OgorICAgICAgICAgICAgICAgIHNlbGYuX3JlbW92ZV9waWRfZmlsZSgpCisgICAgICAgICAgICAg
ICAgcmV0dXJuCisKICAgICAgICAgICAgIHJhaXNlIGh0dHBfc2VydmVyX2Jhc2UuU2VydmVyRXJy
b3IoJ0ZhaWxlZCB0byBzdG9wICVzOiBwaWQgZmlsZSBzdGlsbCBleGlzdHMnICUgc2VsZi5fbmFt
ZSkKIAogICAgIGRlZiBfcnVuKHNlbGYsIGNtZCk6Cg==
</data>
<flag name="review"
          id="270854"
          type_id="1"
          status="+"
          setter="darin"
    />
          </attachment>
      

    </bug>

</bugzilla>