- 24 3月, 2014 10 次提交
-
-
由 Brian Clozel 提交于
Prior to this commit, the ShallowEtagHeaderFilter did not use the content length given by the content generator to set the ByteArrayOutputStream's buffer size. This can lead to performance issues for large content since the buffer grows as the content is being written. This commit adds a new ByteArrayOutputStream variant called ResizableByteArrayOutputStream. This implementation has public methods for modifying the internal buffer size and does not synchronize on buffer access. This commit also make use of this new variant in ShallowEtagHeaderFilter. Issue: SPR-8271
-
由 Juergen Hoeller 提交于
-
由 Juergen Hoeller 提交于
Issue: SPR-11574
-
由 Juergen Hoeller 提交于
SessionFlashMapManager also clears the session attribute now when the given FlashMap List is empty. Issue: SPR-11538
-
由 Juergen Hoeller 提交于
Issue: SPR-11548
-
由 Rossen Stoyanchev 提交于
Expand SockJS documentation
-
由 Rossen Stoyanchev 提交于
-
由 Rossen Stoyanchev 提交于
Issue: SPR-11437
-
由 Rossen Stoyanchev 提交于
Issue: SPR-11496, SPR-11525
-
由 Rossen Stoyanchev 提交于
-
- 23 3月, 2014 6 次提交
-
-
由 Rossen Stoyanchev 提交于
-
由 Rossen Stoyanchev 提交于
Issue: SPR-11556
-
由 Rossen Stoyanchev 提交于
-
由 Rossen Stoyanchev 提交于
When a send timeout is detected, the WebSocket session is now closed with a custom close status that indicates so. This allows skipping parts of the close logic that may cause further hanging. Issue: SPR-11450
-
由 Rossen Stoyanchev 提交于
Before this change SockJsSession implementations of WebSocketSession used synchronization around its method implementations protecting internal state and ensuring only a single thread is sending messages at a time. A WebSocketSession is generally expected to be used from one thread at a time and now that application messages are sent through ConcurrentWebSocketSessionDecorator, there is no concern about application messages sent from the different threads. While there are some remaining concerns, those can be addressed without using the synchronized keyword. This change removes it from the methods of all SockJS session implementations. Issue: SPR-11450
-
由 Rossen Stoyanchev 提交于
Before this change the decorator ensured that for a specific WebSocket session only one thread at a time can send a message. Other threads attempting to send would have their messages buffered and each time that occurs, a check is also made to see if the buffer limit has been reached or the send time limit has been exceeded and if so the session is closed. This change adds further protection to ensure only one thread at a time can perform the session limit checks and attempt to close the session. Furthermore if the session has timed out and become unresponsive, attempts to close it may block yet another thread. Taking this into consideration this change also ensures that state associated with the session is cleaned first before an attempt is made to close the session. Issue: SPR-11450
-
- 21 3月, 2014 11 次提交
-
-
由 Rossen Stoyanchev 提交于
Since we now wrap the WebSocketSession with a concurrent decorator, the synchronized keyword around message sending needed to be removed. Issue: SPR-11586
-
由 Sam Brannen 提交于
- AnnotationAttributesReadingVisitor no longer processes annotations from the java.lang.annotation package. - Simplified logic in AnnotationReadingVisitorUtils getMergedAnnotationAttributes(). Issue: SPR-11574
-
由 Juergen Hoeller 提交于
Issue: SPR-11581
-
由 Juergen Hoeller 提交于
Issue: SPR-11579
-
由 Rossen Stoyanchev 提交于
If a payload is present but conversion returns null (meaning no converter knows how to convert), raise a MessageConversionException that provides information about the type we were trying to convert to and the message itself whose headers (namely content-type) contain crucial information required to debug the problem. Issue: SPR-11577
-
由 Brian Clozel 提交于
Prior to this commit, configuring a custom handshakeHandler when setting up a stomp-endpoint with SockJS would not be taken into account: <websocket:stomp-endpoint path="/foo"> <websocket:handshake-handler ref="customHandler"/> <websocket:sockjs/> </websocket:stomp-endpoint> This commit fixes this by creating and registering a WebsocketTransportHandler (with this handshakeHandler) as a transportHandler override for the SockJSService. Issue: SPR-11568
-
由 Rossen Stoyanchev 提交于
Issue: SPR-11586
-
由 Rossen Stoyanchev 提交于
-
由 Rossen Stoyanchev 提交于
When no @Payload is provided, it is equivalent to @Payload with default attribute values. Since the default value of required=true, then an argument that's not annotated is required.
-
由 Stephane Nicoll 提交于
A payload that is required will now throw an appropriate exception regardless of if a conversion is required or not. isEmptyPayload now takes the payload instead of the message so that both the original payload and the converted payload, if necessary, share the same logic. JSR-303 validation is now consistently applied. Issue: SPR-11577
-
由 Stephane Nicoll 提交于
Prior to this commit, the codebase was using a mix of log4j.xml and log4j.properties for test-related logging configuration. This can be an issue as log4j takes the xml variant first when looking for a default bootstrap configuration. In practice, some modules declaring the properties variant were taking the xml variant configuration from another module. The general structure of the configuration has also been harmonized to provide a standard console output as well as an easy way to enable trace logs for the current module.
-
- 20 3月, 2014 6 次提交
-
-
由 Rossen Stoyanchev 提交于
The clientInboundChannel and clientOutboundChannel now use twice the number of available processors by default to accomodate for some degree of blocking in task execution on average. In practice these settings still need to be configured explicitly in applications but these should serve as better default values than the default values in ThreadPoolTaskExecutor. Issue: SPR-11450
-
由 Sam Brannen 提交于
-
由 Juergen Hoeller 提交于
Issue: SPR-11239
-
由 Sam Brannen 提交于
Prior to this commit, Spring supported meta-annotation attribute overrides in custom composed annotations with reflection-based annotation processing but not with ASM-based annotation processing. This commit ensures that meta-annotation attribute overrides are supported in AnnotationMetadataReadingVisitor.getAnnotationAttributes(). Issue: SPR-11574
-
由 Rossen Stoyanchev 提交于
This change exposes the WebSocketSession attributes through a message header. The StompSubProtocolHandler adds this to incoming messages. For now messaging handling methods can access the map via @Header, e.g.: @Header(StompHeaderAccessor.SESSION_ATTRIBUTES) Map<String, Object> attrs) { Issue: SPR-11566
-
由 Rossen Stoyanchev 提交于
Issue: SPR-11566
-
- 19 3月, 2014 7 次提交
-
-
由 Rossen Stoyanchev 提交于
-
由 Rossen Stoyanchev 提交于
Issue: SPR-11580
-
由 Sam Brannen 提交于
This commit sets the DB_CLOSE_ON_EXIT flag to false for embedded H2 databases loaded using H2EmbeddedDatabaseConfigurer (i.e., via Spring's <jdbc:embedded-database /> XML namespace, EmbeddedDatabaseBuilder, EmbeddedDatabaseFactory, and EmbeddedDatabaseFactoryBean). Issue: SPR-11573
-
由 Sam Brannen 提交于
This commit improves the configurability of EmbeddedDatabaseBuilder by exposing the following new configuration methods. - setDataSourceFactory(DataSourceFactory) - addScripts(String...) - setScriptEncoding(String) - setSeparator(String) - setCommentPrefix(String) - setBlockCommentStartDelimiter(String) - setBlockCommentEndDelimiter(String) - continueOnError(boolean) - ignoreFailedDrops(boolean) If more fine grained control over the configuration of the embedded database is required, users are recommended to use EmbeddedDatabaseFactory with a ResourceDatabasePopulator and forego use of the builder. Issue: SPR-11410
-
由 Sam Brannen 提交于
-
由 Juergen Hoeller 提交于
-
由 Juergen Hoeller 提交于
Issue: SPR-11570
-