proxy progress

one more go? it makes no sense :(
This commit is contained in:
rusefi 2020-07-08 20:41:35 -04:00
parent 972c56f629
commit 71f38012a4
2 changed files with 3 additions and 5 deletions

View File

@ -188,11 +188,7 @@ public class LinkManager {
int portPart = TcpConnector.getTcpPort(port);
String hostname = TcpConnector.getHostname(port);
socket = new Socket(hostname, portPart);
TcpIoStream tcpIoStream = new TcpIoStream(logger, socket);
IncomingDataBuffer dataBuffer = IncomingDataBuffer.createDataBuffer(tcpIoStream, logger);
tcpIoStream.setDataBuffer(dataBuffer);
return tcpIoStream;
return new TcpIoStream(logger, socket);
} catch (Throwable e) {
stateListener.onConnectionFailed();
return null;

View File

@ -35,6 +35,8 @@ public class TcpIoStream implements IoStream {
throw new NullPointerException("output");
this.output = output;
this.input = input;
IncomingDataBuffer dataBuffer = IncomingDataBuffer.createDataBuffer(this, logger);
setDataBuffer(dataBuffer);
}
@Override