Uploaded image for project: 'Qpid Proton'
  1. Qpid Proton
  2. PROTON-682

proton-c: a call to pn_messenger_stop can get into an infinite loop if the remote connection is severed

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      Description

      The problem is that the transport layer is not being closed down properly if output is pending when the connection is severed and a messenger stop is requested. pn_messenger_stop needs to send out an AMQP close message any will only do this when there is an event to say that it can write (i.e pn_messenger_process gets a PN_WRITABLE event from pn_selector_next, which examines the pollfd and sets PN_WRITABLE event if POLLOUT is set in revents). Because this event is never generated it seems to loop forever.

        Attachments

        1. 36_socket_hangup_fix_messenger.c.patch
          1 kB
          Dominic Evans
        2. 36_socket_hangup_fix_selector.c.patch
          0.9 kB
          Dominic Evans
        3. 36_socket_hangup_fix_selector.h.patch
          0.8 kB
          Dominic Evans

          Activity

            People

            • Assignee:
              astitcher Andrew Stitcher
              Reporter:
              dnwe Dominic Evans
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: