Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-10854

SockJS: fallback to http-streaming fails after 128K of data

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Complete
    • Affects Version/s: 4.0 M2
    • Fix Version/s: 4.0 RC1
    • Component/s: Messaging:WebSocket
    • Labels:
      None
    • Last commented by a User:
      false

      Description

      Use the sample application spring-websocket-portfolio with IE9
      IE9 issues a HTTP get to receive all updates.
      After 128K, the server completes the async request:

      09:22:03 TRACE [MessageChannel-6] [HtmlFileTransportHandler$HtmlFileStreamingSockJsSession] - Preparing to write SockJsFrame content='a["MESSAGE\nsubscription:sub-1\nmessage-id:17kxgwnl-922\ndestination:/topic/pric...(truncated)'
      09:22:03 TRACE [MessageChannel-6] [HtmlFileTransportHandler$HtmlFileStreamingSockJsSession] - Writing SockJsFrame content='<script>\np("a[\"MESSAGE\\nsubscription:sub-1\\nmessage-id:17kxgwnl-922
      ndestina...(truncated)'
      09:22:03 TRACE [MessageChannel-6] [HtmlFileTransportHandler$HtmlFileStreamingSockJsSession] - 131090 bytes written so far, 0 more messages not flushed
      09:22:03 TRACE [MessageChannel-6] [HtmlFileTransportHandler$HtmlFileStreamingSockJsSession] - Streamed bytes limit reached. Recycling current request
      09:22:03 DEBUG [MessageChannel-6] [HtmlFileTransportHandler$HtmlFileStreamingSockJsSession] - Completing asynchronous request

      IE9 issues another http GET and server starts to send data
      in the console of IE9, the following error is logged multiple times:
      SCRIPT5009: 'p' is undefined
      htmlfile?c=_jp.afmmijq, line 35 character 1

        Attachments

          Activity

            People

            • Assignee:
              rstoya05-aop Rossen Stoyanchev
              Reporter:
              pieter Pieter
              Last updater:
              Phil Webb
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                4 years, 34 weeks, 2 days ago