<?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>302823</bug_id>
          
          <creation_ts>2025-11-19 14:13:26 -0800</creation_ts>
          <short_desc>Safari 26: Websocket fails to connect &quot;The network connection was lost&quot; in case of simultaneous http request to the same server</short_desc>
          <delta_ts>2026-01-22 11:37:59 -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>New Bugs</component>
          <version>Safari 26</version>
          <rep_platform>All</rep_platform>
          <op_sys>iOS 26</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>MOVED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>dmendez</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>dmendez</cc>
    
    <cc>joseph.belmonte</cc>
    
    <cc>romankimlicek5</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zhenchao_li</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2160060</commentid>
    <comment_count>0</comment_count>
    <who name="">dmendez</who>
    <bug_when>2025-11-19 14:13:26 -0800</bug_when>
    <thetext>Steps to reproduce:

1. Restart Safari 26 
2. Go to https://jsfiddle.net/qbh8gLne/13/
3. Click &quot;open websocket&quot;

Results: 
- The &quot;error&quot; event fires for the websocket
- console shows error &quot;The network connection was lost&quot;

The problem does not appear to happen if:
- The fetch is to a different server
- The fetch is awaited before opening the websocket
- Safari is not restarted

Sample User Agent strings for users who have encountered this problem:

Mozilla/5.0+(iPhone;+CPU+iPhone+OS+18_7+like+Mac+OS+X)+AppleWebKit/605.1.15+(KHTML,+like+Gecko)+Version/26.1+Mobile/15E148+Safari/604.1 
Mozilla/5.0+(Macintosh;+Intel+Mac+OS+X+10_15_7)+AppleWebKit/605.1.15+(KHTML,+like+Gecko)+Version/26.1+Safari/605.1.15
Mozilla/5.0+(Macintosh;+Intel+Mac+OS+X+10_15_7)+AppleWebKit/605.1.15+(KHTML,+like+Gecko)+Version/26.0.1+Safari/605.1.15
Mozilla/5.0+(Macintosh;+Intel+Mac+OS+X+10_15_7)+AppleWebKit/605.1.15+(KHTML,+like+Gecko)+Version/26.0.1+Safari/605.1.15
Mozilla/5.0+(iPhone;+CPU+iPhone+OS+18_7+like+Mac+OS+X)+AppleWebKit/605.1.15+(KHTML,+like+Gecko)+Version/26.1+Mobile/15E148+Safari/604.1
Mozilla/5.0+(iPhone;+CPU+iPhone+OS+18_7+like+Mac+OS+X)+AppleWebKit/605.1.15+(KHTML,+like+Gecko)+Version/26.1+Mobile/15E148+Safari/604.12
Mozilla/5.0+(iPhone;+CPU+iPhone+OS+18_7+like+Mac+OS+X)+AppleWebKit/605.1.15+(KHTML,+like+Gecko)+Version/26.0.1+Mobile/15E148+Safari/604.1

Could this be related to https://bugs.webkit.org/show_bug.cgi?id=215631?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2160381</commentid>
    <comment_count>1</comment_count>
    <who name="">dmendez</who>
    <bug_when>2025-11-20 15:01:48 -0800</bug_when>
    <thetext>Is there any update on this, particularly if there is a server side workaround we could implement?  This is starting to affect many of our Safari users.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2160694</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2025-11-21 13:38:49 -0800</bug_when>
    <thetext>I was about to say that this seemed more like bug 302561, but (1) that one is reported to be an iOS 26.1 regression, and (2) I can reproduce this one without iCloud Private Relay.

Such WebSocket issues are generally in an underlying networking library below WebKit, so I&apos;ll move this bug to Apple internal system for Apple engineers to investigate.

&gt; This is starting to affect many of our Safari users. 

If you could describe the impact (how many people are affected and how badly), that would help with prioritization. Please feel free to email me if you prefer to not share this information publicly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2160695</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2025-11-21 13:38:55 -0800</bug_when>
    <thetext>&lt;rdar://problem/165232100&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2166743</commentid>
    <comment_count>4</comment_count>
    <who name="Zhenchao Li">zhenchao_li</who>
    <bug_when>2025-12-17 15:11:06 -0800</bug_when>
    <thetext>I can reproduce the websocket error in Safari. However if I try Chrome it is giving me the same error.
I wonder if anything has since changed on the server side?
I can continue to investigate but would be good to confirm whether this is still an issue that only happens in Safari.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2168621</commentid>
    <comment_count>5</comment_count>
    <who name="">dmendez</who>
    <bug_when>2025-12-30 12:38:51 -0800</bug_when>
    <thetext>I just tried a few different browsers and these are my results:

Chrome on Windows (Version 143.0.7499.170 (Official Build) (64-bit)) - OK
Safari 26.2 on Tahoe desktop - ERROR
Chrome 143 on Tahoe desktop - OK
Chrome on iphone 17 26.0 - OK
Safari on iphone 17 26.0 - ERROR</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2174174</commentid>
    <comment_count>6</comment_count>
    <who name="">dmendez</who>
    <bug_when>2026-01-22 11:25:43 -0800</bug_when>
    <thetext>(In reply to Alexey Proskuryakov from comment #2)
&gt; I was about to say that this seemed more like bug 302561, but (1) that one
&gt; is reported to be an iOS 26.1 regression, and (2) I can reproduce this one
&gt; without iCloud Private Relay.
&gt; 
&gt; Such WebSocket issues are generally in an underlying networking library
&gt; below WebKit, so I&apos;ll move this bug to Apple internal system for Apple
&gt; engineers to investigate.
&gt; 
&gt; &gt; This is starting to affect many of our Safari users. 
&gt; 
&gt; If you could describe the impact (how many people are affected and how
&gt; badly), that would help with prioritization. Please feel free to email me if
&gt; you prefer to not share this information publicly.

This is marked &quot;resolved moved&quot;.   Was it moved to another bug system?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2174178</commentid>
    <comment_count>7</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2026-01-22 11:37:59 -0800</bug_when>
    <thetext>Yes:

&gt; Such WebSocket issues are generally in an underlying networking library below WebKit, so I&apos;ll move this bug to Apple internal system for Apple engineers to investigate.

There are no updates to share here.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>