1. 29 11月, 2017 3 次提交
    • S
      Fix grammar · 2b68212c
      Sam Brannen 提交于
      2b68212c
    • R
      Polish · 3650ecc3
      Rossen Stoyanchev 提交于
      3650ecc3
    • R
      Update CORS chapters · bec63fbb
      Rossen Stoyanchev 提交于
      - Add "Processing" section (also replaces Advanced Customizations)
      - Add information on out-of-the-box behavior
      - Add more deails on @CrossOririn default configuratio
      - Add cross-references between Spring MVC and WebFlux
      - Polish
      bec63fbb
  2. 28 11月, 2017 4 次提交
  3. 27 11月, 2017 2 次提交
  4. 26 11月, 2017 1 次提交
  5. 25 11月, 2017 1 次提交
  6. 24 11月, 2017 3 次提交
  7. 23 11月, 2017 8 次提交
    • R
      Improve semantics writing currentData · 01a82b52
      Rossen Stoyanchev 提交于
      Before this commit, the return value from write was interpreted as the
      data being fully written and ready to be released via releaseData().
      
      This is not true for WebSocketSession implementations where a true
      return value simply means the message was sent with the full payload
      but releas is not appropriate until a send confirmation.
      
      Technically not an issue since WebSocketSession's extending this do
      not use pooled buffers. Nevertheless this commit refines the semantics
      of write, removes the releaseData() method, and makes sub-classes
      responsible for releasing the buffer when fully written (and they
      know best when that is). As a bonus currentData is now private.
      
      Issue: SPR-16207
      01a82b52
    • R
      Polish · 102a0ad7
      Rossen Stoyanchev 提交于
      102a0ad7
    • R
      Polish and improve logging · c1b191ed
      Rossen Stoyanchev 提交于
      c1b191ed
    • R
      Switch to suspended mode before demand · f4436687
      Rossen Stoyanchev 提交于
      After this commit, Tomcat and Undertow WebSocketSession imlpementations
      start out in suspended mode and wait for demand.
      
      The JettyWebSocketSession is capable of suspending but it doesn't seem
      to work if invoked before any messages are received. That may become an
      issue if there is a case where no demand appears long enough for more
      messages to accumulate than we can hold.
      
      UnderowServerHttpRequest would ideally also start in suspended mode but
      that also doesn't work. It is not an issue in this case since we can
      ignore the read notifications.
      
      Servlet API requires a proactive check before it calls you back so
      there is no need to suspend.
      
      Issue: SPR-16207
      f4436687
    • R
      Avoid resume-suspend race condition · afdca285
      Rossen Stoyanchev 提交于
      This commit turns suspendReading() into a readingPaused() notification
      that is invoked after a succession of reads stops because there is no
      more demand. Sub-classes can use this notification to suspend, if that
      applies to them.
      
      Most importantly the notification is guaranteed not to overlap with
      checkOnDataAvailable() which means that suspend does not need to be
      atomic and guarded against resume. The two can and do compete all the
      time when reading ends with no demand, and a request for demand arrives
      concurrently.
      
      Issue: SPR-16207
      afdca285
    • S
      Set Vary: Origin on CORS unauthorized response · 4a87d3da
      sdeleuze 提交于
      Issue: SPR-16224
      4a87d3da
    • S
      Disable CORS credentials by default · 652e5c55
      sdeleuze 提交于
      Access-Control-Allow-Credentials CORS header, used to
      allow cookies with CORS requests, is not set to true
      anymore by default when enabling CORS with
      @CrossOrigin or global CORS configuration in order to
      provide a more secured default CORS configuration.
      
      The related allowCredentials property now requires to
      be set to true explicitly in order to support cookies
      with CORS requests.
      
      Issue: SPR-16130
      652e5c55
    • J
      Log4jLog explicitly passes String argument (avoiding argument expansion) · 93f17dae
      Juergen Hoeller 提交于
      Issue: SPR-16226
      93f17dae
  8. 22 11月, 2017 9 次提交
  9. 21 11月, 2017 9 次提交