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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Blocker
    • Resolution: Unresolved
    • None
    • None
    • Classlib
    • None
    • 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

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

            Dates

              Created:
              Updated: