[ 
https://issues.apache.org/jira/browse/NIFI-2567?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15420212#comment-15420212
 ] 

Koji Kawamura commented on NIFI-2567:
-------------------------------------

HTTP Site-to-Site POST uses HttpAsyncRequestProducer. Its produceContent method 
reads data from dataPacketChannel which Remote Group Port sends data to.

The produceContent method has a loop inside, to read data from the channel, and 
write buffer by calling encoder.write. However, in order to use the Async 
framework properly, the method should return when encoder.write returns 0, even 
if there's remaining buffer.

ContentEncoder.write possibly returns 0, if underlying session is not ready to 
send more data. When it's ready, the produceContent method will be called 
again. Current implementation doesn't take this into account, so it the loop 
runs infinitely.

I fixed the code, confirmed it can send more data. I will send a PR once an 
Unit test case is added.

> HTTP Site-to-Site can't send data larger about 7KB via HTTPS
> ------------------------------------------------------------
>
>                 Key: NIFI-2567
>                 URL: https://issues.apache.org/jira/browse/NIFI-2567
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Core Framework
>    Affects Versions: 1.0.0
>            Reporter: Koji Kawamura
>            Assignee: Koji Kawamura
>            Priority: Blocker
>
>  HTTP Site-to-Site fails to send data bigger than about 7KB through HTTPS.
> Getting data via HTTPS works. It can send large data with HTTP.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to