@@ -568,6 +568,7 @@ func (a *Client) Serve() {
568568 }
569569}
570570
571+ // TODO: e2e test failure: No "Received data from agent" in server, only ACKS are received
571572func (a * Client ) remoteToProxy (connID int64 , eConn * endpointConn ) {
572573 defer func () {
573574 if panicInfo := recover (); panicInfo != nil {
@@ -585,7 +586,7 @@ func (a *Client) remoteToProxy(connID int64, eConn *endpointConn) {
585586
586587 for {
587588 n , err := eConn .conn .Read (buf [:])
588- klog .V (5 ).InfoS ("received data from remote" , "bytes" , n , "connectionID" , connID )
589+ klog .V (4 ).InfoS ("received data from remote" , "bytes" , n , "connectionID" , connID )
589590
590591 if err == io .EOF {
591592 klog .V (2 ).InfoS ("remote connection EOF" , "connectionID" , connID )
@@ -615,6 +616,7 @@ func (a *Client) remoteToProxy(connID int64, eConn *endpointConn) {
615616 if err := a .Send (resp ); err != nil {
616617 klog .ErrorS (err , "could not send DATA" , "connectionID" , connID )
617618 }
619+ klog .V (4 ).InfoS ("send data to server successfully" , "bytes" , n , "connectionID" , connID )
618620 }
619621}
620622
@@ -654,11 +656,11 @@ func (a *Client) proxyToRemote(connID int64, eConn *endpointConn) {
654656 resp .Payload = & client.Packet_DataAck {DataAck : & client.DataAck {
655657 ConnectID : connID ,
656658 }}
657- klog .V (4 ).InfoS ("DANIEL: send DATA_ACK" , "connectionID" , connID )
659+ klog .V (4 ).InfoS ("send DATA_ACK" , "connectionID" , connID )
658660 if err := a .Send (resp ); err != nil {
659661 klog .ErrorS (err , "stream send ack failure" )
660662 }
661- klog .V (4 ).InfoS ("DANIEL: send DATA_ACK SUCCESSFULLY" , "connectionID" , connID )
663+ klog .V (4 ).InfoS ("send DATA_ACK SUCCESSFULLY" , "connectionID" , connID )
662664
663665 pos := 0
664666 for {
0 commit comments