Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-1371

Socket timeouts (SO_RCVTIMEO and SO_SNDTIMEO) not supported on Solaris

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 0.7
    • 0.9.2
    • C++ - Library
    • None
    • Patch Available

    Description

      Solaris doesn't support setting SO_RCVTIMEO and SO_SNDTIMEO on socket using setsockopt(). I suggest using non-blocking socket and poll(). I've attached patch (generated by diff -crB) against thrift-0.7.0 that does that. The patch was tested in quite big production environment for more that one month and works well.

      Attachments

        1. thrift-0.8.0-poll.patch
          14 kB
          sunnya
        2. thrift-0.7.0-poll.patch
          14 kB
          Michał Kowalczuk

        Activity

          People

            Unassigned Unassigned
            mkowalczuk Michał Kowalczuk
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: