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

TBufferedTransport split Tcp data bug in nodeJs

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: 0.9.2
    • Component/s: None
    • Labels:
      None
    • Environment:

      centos nodeJsv0.10.24 thrift0.9.1

      Description

      when i use TBufferedTransport in client and server, the problem is:
      1)my thrift file is :namespace js com.thrift
      struct User {
      1: i32 uid,
      2: string name,
      3: i16 age,
      4: string desc
      }
      service UserService {
      string add(1: User user)
      }
      2) client:
      I execute add() method 3 times, but response is only 1 times.
      for example:
      client.add(user, function(err, response) {
      console.log("response-1:", response);
      });
      client.add(user, function(err, response) {
      console.log("response-2:", response);
      });
      client.add(user, function(err, response) {
      console.log("response-3:", response);
      });

      Please help me to solve this problem!

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              my_program my_program
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: