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.
Details
Details
- Reviewers
tfiala
Diff Detail
Diff Detail
Event Timeline
Comment Actions
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