tyrus
                                
                                 tyrus copied to clipboard
                                
                                    tyrus copied to clipboard
                            
                            
                            
                        RETRY_AFTER_SERVICE_UNAVAILABLE flag prevents onDisconnect from setting a delay
If you set client.getProperties.put(ClientProperties.RETRY_AFTER_SERVICE_UNAVAILABLE, true) and also set up a ClientProperties.RECONNECT_HANDLER, you hit some strange behavior.
When the connection is closed, the code call the user's ReconnectHandler.onDisconnect() method. If that method returns true, it then calls ReconnectHandler.getDelay() to determine when to reconnect - but that method is overridden by the internal RetryAfterReconnectHandler.getDelay() method, so it will always return 0. I don't see a way to set a user-defined delay for the onDisconnect handler.
Affected Versions
[1.11]
- Issue Imported From: https://github.com/tyrus-project/tyrus/issues/583
- Original Issue Raised By:@glassfishrobot
- Original Issue Assigned To: @pavelbucek
@glassfishrobot Commented Reported by enwiner
@glassfishrobot Commented This issue was imported from java.net JIRA TYRUS-406