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

c-reactor-tests fails because it listens to an IPv4 socket but connects to an IPv6 socket

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • proton-c
    • None

    Description

      strace of relevant bits of failing run.

      ...
      socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 3
      setsockopt(3, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
      bind(3, {sa_family=AF_INET, sin_port=htons(5672), sin_addr=inet_addr("0.0.0.0")}, 16) = 0
      listen(3, 50)                           = 0
      ...
      socket(PF_INET6, SOCK_STREAM, IPPROTO_TCP) = 4
      fcntl(4, F_GETFL)                       = 0x2 (flags O_RDWR)
      fcntl(4, F_SETFL, O_RDWR|O_NONBLOCK)    = 0
      setsockopt(4, SOL_TCP, TCP_NODELAY, [1], 4) = 0
      connect(4, {sa_family=AF_INET6, sin6_port=htons(5672), inet_pton(AF_INET6, "::1", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, 28) = -1 EINPROGRESS (Operation now in progress)
      poll([{fd=3, events=POLLIN}, {fd=4, events=POLLIN|POLLOUT}], 2, 1000) = 1 ([{fd=4, revents=POLLIN|POLLOUT|POLLERR|POLLHUP}])
      recvfrom(4, 0x1b19200, 16384, 0, 0, 0)  = -1 ECONNREFUSED (Connection refused)
      ...
      sendto(4, "AMQP\3\1\0\0\0\0\0!\2\1\0\0\0SA\320\0\0\0\21\0\0\0\2\243\tAN"..., 224, MSG_NOSIGNAL, NULL, 0) = -1 EPIPE (Broken pipe)
      

      Attachments

        Activity

          People

            rhs Rafael H. Schloming
            astitcher Andrew Stitcher
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: