<?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>230962</bug_id>
          
          <creation_ts>2021-09-29 09:37:35 -0700</creation_ts>
          <short_desc>WebSocket connection terminated when server sends junk</short_desc>
          <delta_ts>2022-09-12 04:26:26 -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>WebKit Misc.</component>
          <version>Safari 15</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alex Christensen">achristensen</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>dreiraeder.baum_0x</cc>
    
    <cc>Justin</cc>
    
    <cc>luryson</cc>
    
    <cc>mwake</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1798395</commentid>
    <comment_count>0</comment_count>
    <who name="Alex Christensen">achristensen</who>
    <bug_when>2021-09-29 09:37:35 -0700</bug_when>
    <thetext>Go to https://libwebsockets.org/testserver/
Click &quot;Send junk&quot;

Chrome and Firefox don&apos;t terminate, Safari does.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1799570</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2021-10-01 15:04:36 -0700</bug_when>
    <thetext>rdar://82529327</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1799638</commentid>
    <comment_count>2</comment_count>
    <who name="Alex Christensen">achristensen</who>
    <bug_when>2021-10-01 16:59:34 -0700</bug_when>
    <thetext>When clicking the &quot;Send junk&quot; button it sends a text frame like &apos;aaaaaaaaaaaaaaaaa...&apos;  and in SocketStreamHandleImpl::readStreamCallback I get kCFStreamEventEndEncountered.  The NSURLSession WebSocket implementation also terminates.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1832387</commentid>
    <comment_count>3</comment_count>
    <who name="">luryson</who>
    <bug_when>2022-01-20 03:13:04 -0800</bug_when>
    <thetext>want to knows what happens from server side. can&apos;t reproduced</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1897808</commentid>
    <comment_count>4</comment_count>
    <who name="Lukas">dreiraeder.baum_0x</who>
    <bug_when>2022-09-12 04:26:26 -0700</bug_when>
    <thetext>I can easily reproduce the behavior reported by Alex Christensen. Just go to https://libwebsockets.org/testserver/ and click &quot;Send junk&quot;. This also has a real world implication as described here: 

https://apple.stackexchange.com/questions/430252/azure-devops-tfs-in-safari-keeps-asking-password</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>