Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-users] WebSocketClient sends the cookies twice

Hi all,

Using WebSocket client: 9.2.14.v20151106

I see the cookies returned from the cookieStore is sent twice.

By debugging, in WebSocketClient.connect(Object websocket, URI toUri), there is a call to:

        request.setCookiesFrom(this.cookieStore);


And then it calls: connect(Object websocket, URI toUri, ClientUpgradeRequest request, UpgradeListener upgradeListener)

which again calls:

        request.setCookiesFrom(this.cookieStore);

and the implementation of ClientUpgradeRequest.setCookiesFrom() is to add the cookies returned.

Any hints?

Thanks,
Ahmed

Back to the top