@@ -1096,15 +1096,8 @@ private void convertCookies(final Collection<Cookie> cookies,
1096
1096
final org .glassfish .grizzly .http .Cookie [] gCookies ) {
1097
1097
int idx = 0 ;
1098
1098
for (final Cookie cookie : cookies ) {
1099
- final org .glassfish .grizzly .http .Cookie gCookie =
1100
- new org .glassfish .grizzly .http .Cookie (cookie .getName (), cookie .getValue ());
1101
- gCookie .setDomain (cookie .getDomain ());
1102
- gCookie .setPath (cookie .getPath ());
1103
- gCookie .setVersion (1 );
1104
- gCookie .setMaxAge (cookie .getMaxAge ());
1105
- gCookie .setSecure (cookie .isSecure ());
1106
- gCookies [idx ] = gCookie ;
1107
- idx ++;
1099
+ gCookies [idx ++] = new org .glassfish .grizzly .http .Cookie (
1100
+ cookie .getName (), cookie .getValue ());
1108
1101
}
1109
1102
1110
1103
}
@@ -1326,7 +1319,7 @@ protected void onInitialLineParsed(HttpHeader httpHeader,
1326
1319
try {
1327
1320
context .result (handler .onCompleted ());
1328
1321
context .done ();
1329
- } catch (Exception e ) {
1322
+ } catch (Throwable e ) {
1330
1323
context .abort (e );
1331
1324
}
1332
1325
}
@@ -1459,7 +1452,7 @@ protected void onHttpHeadersParsed(HttpHeader httpHeader,
1459
1452
"WebSocket protocol error: unexpected HTTP response status during handshake." );
1460
1453
context .result (null );
1461
1454
}
1462
- } catch (Exception e ) {
1455
+ } catch (Throwable e ) {
1463
1456
httpHeader .setSkipRemainder (true );
1464
1457
context .abort (e );
1465
1458
}
@@ -1531,7 +1524,7 @@ protected boolean onHttpPacketParsed(HttpHeader httpHeader, FilterChainContext c
1531
1524
if (handler != null ) {
1532
1525
try {
1533
1526
context .result (handler .onCompleted ());
1534
- } catch (Exception e ) {
1527
+ } catch (Throwable e ) {
1535
1528
context .abort (e );
1536
1529
}
1537
1530
} else {
0 commit comments