[ https://issues.apache.org/jira/browse/THRIFT-2622?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Henrique Mendonça resolved THRIFT-2622. --------------------------------------- Resolution: Duplicate It looks like a duplicate, could you check if it works after applying THRIFT-2591 ? Please reopen this if you think it's something else. Cheers, Henrique > Expecting > 4 bytes, found only 2 > --------------------------------- > > Key: THRIFT-2622 > URL: https://issues.apache.org/jira/browse/THRIFT-2622 > Project: Thrift > Issue Type: Bug > Components: Node.js - Library > Affects Versions: 0.9.1 > Environment: v0.10.26 > Reporter: my_program > > When I deploy my application in production Environment, it always generate > error "Expecting > 4 bytes, found only 2" every one or two minutes。 > Source code is: > // framed transport > while (data.length) { > if (frameLeft === 0) { > // TODO assumes we have all 4 bytes > if (data.length < 4) { > console.log("Expecting > 4 bytes, found only " + data.length); > residual = data; > break; > //throw Error("Expecting > 4 bytes, found only " + data.length); > } > frameLeft = binary.readI32(data, 0); > frame = new Buffer(frameLeft); > framePos = 0; > data = data.slice(4, data.length); > } > I don't know why? Can anybody help me? -- This message was sent by Atlassian JIRA (v6.2#6252)