This is an archive of the discontinued LLVM Phabricator instance.

swig_bot remote path preliminary implementation
ClosedPublic

Authored by zturner on Nov 23 2015, 2:46 PM.

Details

Reviewers
tfiala
Summary
With this patch, the client will package up all the required
inputs into a compressed zip file, establish a connection to the
server, send the input to the server, and wait for the server to
send a response (in this case the response is just echoed back to
the client).

This gets the network communication in place, and in a subsequent
patch I will follow up with the code that actually runs swig on
the server and sends back the output instead of echoing back the
input.

Diff Detail

Event Timeline

zturner updated this revision to Diff 40985.Nov 23 2015, 2:46 PM
zturner retitled this revision from to swig_bot remote path preliminary implementation.
zturner updated this object.
zturner added a reviewer: tfiala.
zturner added a subscriber: lldb-commits.
zturner updated this revision to Diff 40991.Nov 23 2015, 3:27 PM

socket.recv doesn't guarantee a full read. The data can be truncated if it could not be read all at once. This patch fixes this by introducing a helper function in lldbsuite.support to read an exact number of bytes, retrying as necessary until it's complete. Then both the client and server are updated to use this function instead of socket.recv

tfiala accepted this revision.Dec 6 2015, 10:56 PM
tfiala edited edge metadata.

LGTM.

This revision is now accepted and ready to land.Dec 6 2015, 10:56 PM

Ready to close out?

zturner closed this revision.Jan 21 2016, 10:46 AM