File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
java/org/apache/tomcat/util/net Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -1379,6 +1379,25 @@ private boolean socketOrNetworkBufferHasDataLeft() {
13791379 return !socketBufferHandler .isWriteBufferEmpty () || getSocket ().getOutboundRemaining () > 0 ;
13801380 }
13811381
1382+ /*
1383+ * https://bz.apache.org/bugzilla/show_bug.cgi?id=69982
1384+ *
1385+ * Similar to socketOrNetworkBufferHasDataLeft(), check the additional buffer for TLS
1386+ */
1387+ @ Override
1388+ public boolean hasDataToWrite () {
1389+ return super .hasDataToWrite () || getSocket ().getOutboundRemaining () > 0 ;
1390+ }
1391+
1392+ /*
1393+ * https://bz.apache.org/bugzilla/show_bug.cgi?id=69982
1394+ *
1395+ * Similar to socketOrNetworkBufferHasDataLeft(), check the additional buffer for TLS
1396+ */
1397+ @ Override
1398+ public boolean canWrite () {
1399+ return super .canWrite () && getSocket ().getOutboundRemaining () == 0 ;
1400+ }
13821401
13831402 @ Override
13841403 protected void doWrite (boolean block , ByteBuffer buffer ) throws IOException {
You can’t perform that action at this time.
0 commit comments