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

Federico Mariani commented on CAMEL-27001:
------------------------------------------

PR: https://github.com/apache/camel/pull/30093

Besides the upload that waits for the status of its writes (above), the fix 
covers an upload blocked writing to the socket of a half-open connection (TCP 
send buffer full): that upload holds the write lock of the JSch session, and 
{{Session.disconnect()}} waits for it too, as it first sends 
{{SSH_MSG_CHANNEL_CLOSE}} ({{Channel.close()}} -> {{Session.write()}} -> 
{{_write()}}, JSch 2.28.8). So the stop runs the disconnect in its own thread 
and waits for it at most 1 s. Both cases are in 
{{SftpProducerStopDuringHungUploadIT}}.

_Claude Code on behalf of Croway_

> camel-sftp - CamelContext.stop() waits until a hung upload ends: the producer 
> stop waits for the SftpOperations lock that the upload holds, also after the 
> shutdown timeout
> ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-27001
>                 URL: https://issues.apache.org/jira/browse/CAMEL-27001
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-ftp
>    Affects Versions: 4.14.9, 4.18.5, 4.23.0
>            Reporter: Federico Mariani
>            Assignee: Federico Mariani
>            Priority: Major
>             Fix For: 4.24.0
>
>




--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to