Skip to content

Commit

Permalink
increase buffer size
Browse files Browse the repository at this point in the history
  • Loading branch information
Reecepbcups committed Oct 16, 2024
1 parent 560ffe2 commit 5925ae7
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions local-interchain/interchain/handlers/container_log_stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,20 +54,6 @@ func (cs *ContainerStream) StreamContainer(w http.ResponseWriter, r *http.Reques

containerID := r.URL.Query().Get("id")
if containerID == "" {
// TODO: use this for other sidecar containers that are made? (need to test)
// returns containers only for this testnet. other containers are not shown on this endpoint
// c, err := cs.cli.ContainerList(cs.ctx, dockertypes.ContainerListOptions{
// Filters: filters.NewArgs(filters.Arg("label", dockerutil.CleanupLabel+"="+cs.testName)),
// })
// if err != nil {
// http.Error(w, "Unable to get container list", http.StatusInternalServerError)
// return
// }
// availableContainers := []string{}
// for _, container := range c {
// availableContainers = append(availableContainers, container.ID)
// }

output := "No container ID provided. Available containers:\n"
for name, id := range cs.nameToID {
output += fmt.Sprintf("- %s: %s\n", name, id)
Expand Down Expand Up @@ -116,7 +102,7 @@ func (cs *ContainerStream) StreamContainer(w http.ResponseWriter, r *http.Reques
}

for {
buf := make([]byte, 1024)
buf := make([]byte, 8*1024)
n, err := rr.Read(buf)
if err != nil {
break
Expand Down

0 comments on commit 5925ae7

Please sign in to comment.