jakartaee / websocket

Jakarta WebSocket
https://projects.eclipse.org/projects/ee4j.websocket
Other
60 stars 41 forks source link

Introduce property for setting a connection timeout to the client side API #234

Open glassfishrobot opened 9 years ago

glassfishrobot commented 9 years ago

When using the JSR356 WebSocket Client side API to connect to a server:

javax.websocket.WebSocketContainer.connectToServer(...)

there is no way to specify a connection timeout. The method connectToServer() will block until it establishes a connection (which may never happen).

Some implementations (Tyrus, Jetty) provide their own specific ways to do this, but the spec does not.

Affected Versions

[1.1]

glassfishrobot commented 6 years ago
glassfishrobot commented 9 years ago

@glassfishrobot Commented Reported by tmescic

glassfishrobot commented 7 years ago

@glassfishrobot Commented This issue was imported from java.net JIRA WEBSOCKET_SPEC-234