<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: RfcFunction.Invoke() is stuck when its session is des... in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/rfcfunction-invoke-is-stuck-when-its-session-is-destroyed/qaa-p/13729787#M4833019</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/1203677"&gt;@nobyk&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is nothing that is to be discussed here. Please open a ticket, it could be a bug. It definitely requires a deeper analysis with traces of both cases.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;Markus&lt;/P&gt;</description>
    <pubDate>Thu, 13 Jun 2024 11:57:37 GMT</pubDate>
    <dc:creator>MarkusTolksdorf</dc:creator>
    <dc:date>2024-06-13T11:57:37Z</dc:date>
    <item>
      <title>RfcFunction.Invoke() is stuck when its session is destroyed</title>
      <link>https://community.sap.com/t5/technology-q-a/rfcfunction-invoke-is-stuck-when-its-session-is-destroyed/qaq-p/13729778</link>
      <description>&lt;P&gt;We manage sessions implementing SAP.Middleware.Connector.ISessionProvider. I'm trying to cancel a session invoking SessionChanged event when the RFC call takes too long.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;ISessionProvider.SessionChanged.Invoke(new RfcSessionEventArgs(RfcSessionManager.EventType.DESTROYED, sessionId))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm testing this cancellation logic using RFC_PING_AND_WAIT on 2 systems:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;System A: Release:789 / KernelRelease:753 / PartnerRelease:750&lt;/LI&gt;&lt;LI&gt;System B: Release:789 / KernelRelease:781 / PartnerRelease:755&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;On the System A, it works as expected. RfcCommunicationCanceledException is thrown from CpicConnection.CpicReceive() with a message "Connection to (xxx.xxx.xxx.xxx,3300) with conversationID [xxxxxxx] was canceled".&lt;/P&gt;&lt;P&gt;However, the cancellation doesn't work on the System B. Besides, RfcFunction.Invoke() doesn't finish even after the wait time of RFC_PING_AND_WAIT passes. According to trace logs, it is stuck after obtaining a lock.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;2024-06-13 11:41:50.601 [Thread 9] CpicConnection.CpicCancel requested lock for instance 30880833 of Object: System.Object&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I make it work on the System B as well? If it is not possible, is there a way to know whether the destination supports the cancellation?&lt;/P&gt;&lt;P&gt;* It occurs on NCo 3.1.3.0, 3.1.4.0 and 3.1.4.3. I have not checked other versions.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2024 11:57:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/rfcfunction-invoke-is-stuck-when-its-session-is-destroyed/qaq-p/13729778</guid>
      <dc:creator>nobyk</dc:creator>
      <dc:date>2024-06-13T11:57:57Z</dc:date>
    </item>
    <item>
      <title>Re: RfcFunction.Invoke() is stuck when its session is des...</title>
      <link>https://community.sap.com/t5/technology-q-a/rfcfunction-invoke-is-stuck-when-its-session-is-destroyed/qaa-p/13729787#M4833019</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/1203677"&gt;@nobyk&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is nothing that is to be discussed here. Please open a ticket, it could be a bug. It definitely requires a deeper analysis with traces of both cases.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;Markus&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2024 11:57:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/rfcfunction-invoke-is-stuck-when-its-session-is-destroyed/qaa-p/13729787#M4833019</guid>
      <dc:creator>MarkusTolksdorf</dc:creator>
      <dc:date>2024-06-13T11:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: RfcFunction.Invoke() is stuck when its session is des...</title>
      <link>https://community.sap.com/t5/technology-q-a/rfcfunction-invoke-is-stuck-when-its-session-is-destroyed/qaa-p/13729799#M4833022</link>
      <description>Thank you for your reply, &lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/121864"&gt;@MarkusTolksdorf&lt;/a&gt;. Which channel is the best to open a ticket for the issue?</description>
      <pubDate>Thu, 13 Jun 2024 12:02:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/rfcfunction-invoke-is-stuck-when-its-session-is-destroyed/qaa-p/13729799#M4833022</guid>
      <dc:creator>nobyk</dc:creator>
      <dc:date>2024-06-13T12:02:52Z</dc:date>
    </item>
    <item>
      <title>Re: RfcFunction.Invoke() is stuck when its session is des...</title>
      <link>https://community.sap.com/t5/technology-q-a/rfcfunction-invoke-is-stuck-when-its-session-is-destroyed/qaa-p/13729810#M4833023</link>
      <description>&lt;P&gt;A standard support ticket in SAP for me on component BC-MID-CON-NCO. See&amp;nbsp;&lt;A href="https://me.sap.com/" target="_blank"&gt;https://me.sap.com/&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;BR /&gt;Markus&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2024 12:07:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/rfcfunction-invoke-is-stuck-when-its-session-is-destroyed/qaa-p/13729810#M4833023</guid>
      <dc:creator>MarkusTolksdorf</dc:creator>
      <dc:date>2024-06-13T12:07:14Z</dc:date>
    </item>
  </channel>
</rss>

