Skip to content

Commit

Permalink
Merge pull request #9 from Deepanshu4712/master
Browse files Browse the repository at this point in the history
uaparser go binary update
  • Loading branch information
Sabari-Arunkumar-ML authored Feb 2, 2021
2 parents a17d576 + ee3b905 commit dda755c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/filter_apm_uaparser/filter_uaparser.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ static int get_agent_info(char *agent, int port, msgpack_packer *packer)
continue;
}
valread = recv(sock, buffer, 1024, 0);
} while (valread == 0 && retryCounter <= GLOBALRETRIES);
} while (valread == 0);
}

entry = strtok(buffer, "}");
Expand Down
4 changes: 4 additions & 0 deletions ua-parser/uaparser/socket.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"bufio"
"context"
"net"
"os"
"strconv"
)

Expand All @@ -23,6 +24,8 @@ func socketServer(ctx context.Context, port int) {
l, err := net.Listen(connType, connHost+":"+strconv.Itoa(port))
if err != nil {
Log.Printf("[UA Parser] Error listening:%v", err.Error())
os.Stderr.WriteString(err.Error())
os.Exit(1)
return
}
defer l.Close()
Expand Down Expand Up @@ -83,3 +86,4 @@ func receiveAgent(conn net.Conn, agentChan chan []byte, closeChan chan bool) {
}
agentChan <- buffer
}

Binary file modified ua-parser/uaparser/uaparser
Binary file not shown.

0 comments on commit dda755c

Please sign in to comment.