baalexander/node-xmlrpc — Issue #39: Server should parse data only after request has 'ended'
Author: datakurre
Created: 2012-02-15 05:34:08+00:00
State: open

Hi,

the current server code expects that a request has always only a single data chunk:

https://github.com/baalexander/node-xmlrpc/blob/master/lib/server.js#L51

Unfortunately, that causes errors when XML-serialized method calls comes as splitted into multiple chunks. (Every chunk is handled like a complete method call, which causes multiple broken calls to be done.)

I think, request.on('data') should only concatenate received chunks into temporary httpServer.on('request')-level variable, until request.on('end') handles the method call (as request.on('data') currently does).

Thanks.