equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1996, 2014, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1996, 2016, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
277 void initHandshaker() { |
277 void initHandshaker() { |
278 // clean up |
278 // clean up |
279 fragmenter = null; |
279 fragmenter = null; |
280 } |
280 } |
281 |
281 |
|
282 @Override |
|
283 void launchRetransmission() { |
|
284 // Note: Please don't retransmit if there are handshake messages |
|
285 // or alerts waiting in the queue. |
|
286 if (((alertMemos == null) || alertMemos.isEmpty()) && |
|
287 (fragmenter != null) && fragmenter.isRetransmittable()) { |
|
288 fragmenter.setRetransmission(); |
|
289 } |
|
290 } |
|
291 |
282 // buffered record fragment |
292 // buffered record fragment |
283 private static class RecordMemo { |
293 private static class RecordMemo { |
284 byte contentType; |
294 byte contentType; |
285 byte majorVersion; |
295 byte majorVersion; |
286 byte minorVersion; |
296 byte minorVersion; |