문제

I'm facing an issue with spring-wesockets here. When the page gets refreshed, the server throws an IOException caused by the broken pipe.

Thinking as a server, this is a normal behavior. But thinking as a client its normal to refresh page or go away.

The config:

<websocket:message-broker application-destination-prefix="/app">
    <websocket:stomp-endpoint path="/wsock"/>
    <websocket:simple-broker prefix="/topic,/queue"/>
</websocket:message-broker>

Since I'm using SimpleBroker, is there a way to catch and handle the exception?

도움이 되었습니까?

해결책

Upgrading to Spring 4.0.3 (due march 25th) should fix your problem.

This is a known issue with the servlet spec (you can vote for it to be resolved). Spring 4.0.3 is changing the logging strategy for this - see issue SPR-11438.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top