Upgrading from 7.9.10 to 8.1.12 broke the socket() connection to a Ziath scanner

You may need to chunk/send the output yourself: Jython socket.send large sends - #8 by Kevin.Herron

Or better, and probably not what you want to hear, rewrite it to use Java sockets instead. The Jython socket library is poorly implemented.