Hi Team,
We are using attached code(Module bean) in fetching the mails/attachments from mail box and we see mail adapter getting hung frequently with below error and on simple restart of communication channel mails will be polled without any issues
"at java.net.SocketInputStream.socketRead0(Ljava/io/FileDescriptor;[BIII)I(Native Method)"
SAP suggested to have Connection timeout setting in the code to fix this issue as this issue is due to custom module bean and I request you to check the code and share your thoughts/suggestions to implement timeout code to fix this issue.
Code: