Uploaded image for project: 'Harmony'
  1. Harmony
  2. HARMONY-6687

DatagramChannel.receive in non-blocking mode should be non-blocking

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Blocker
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Classlib
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      configureBlocking just sets the boolean and does not set the O_NONBLOCK ioctl on the fd. There is a comment in the implConfigureBlocking method that is wrong. You need to set this so that you can do a receive and have it return immediately (and return null) as described in the JavaDoc.

      This problem appears on Android.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              flynnk Kenneth Flynn
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated: