You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "mark4z (via GitHub)" <gi...@apache.org> on 2023/04/09 13:56:11 UTC

[GitHub] [dubbo-go-pixiu] mark4z opened a new issue, #558: Http proxy connection can not reuse between pixiu and upstream

mark4z opened a new issue, #558:
URL: https://github.com/apache/dubbo-go-pixiu/issues/558

   <!-- Please use this template while reporting a bug and provide as much info as possible. Not doing so may result in your bug not being addressed in a timely manner. Thanks!
   
   -->
   
   
   **What happened**:
   routerfiller.go
   ```go
   	req.Header = r.Header
   
           // creat http client too many times
   	cli := &http3.Client{
   		Transport: f.transport,
   		Timeout:   hc.Timeout,
   	}
   
   	resp, err := cli.Do(req)
   ```
   ```go
   func (hcm *HttpConnectionManager) buildTargetResponse(c *pch.HttpContext) {
   	if c.LocalReply() {
   		return
   	}
   
   	switch res := c.SourceResp.(type) {
   	case *stdHttp.Response:
   It is the caller's responsibility to
   	// close Body. The default HTTP client's Transport may not
   	// reuse HTTP/1.x "keep-alive" TCP connections if the Body is
   	// not read to completion and closed.
   		body, err := io.ReadAll(res.Body)
   		if err != nil {
   			panic(err)
   		}
   		//Merge header
   		remoteHeader := res.Header
   		for k := range remoteHeader {
   			c.AddHeader(k, remoteHeader.Get(k))
   		}
   ```
   **What you expected to happen**:
   
   **How to reproduce it (as minimally and precisely as possible)**:
   
   **Anything else we need to know?**:
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo-go-pixiu] AlexStocks closed issue #558: Http proxy connection can not reuse between pixiu and upstream

Posted by "AlexStocks (via GitHub)" <gi...@apache.org>.
AlexStocks closed issue #558: Http proxy connection can not reuse between pixiu and upstream
URL: https://github.com/apache/dubbo-go-pixiu/issues/558


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo-go-pixiu] Kermit016 commented on issue #558: Http proxy connection can not reuse between pixiu and upstream

Posted by "Kermit016 (via GitHub)" <gi...@apache.org>.
Kermit016 commented on issue #558:
URL: https://github.com/apache/dubbo-go-pixiu/issues/558#issuecomment-1501137803

   Please assign it to me.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo-go-pixiu] mark4z commented on issue #558: Http proxy connection can not reuse between pixiu and upstream

Posted by "mark4z (via GitHub)" <gi...@apache.org>.
mark4z commented on issue #558:
URL: https://github.com/apache/dubbo-go-pixiu/issues/558#issuecomment-1501140671

   > Please assign it to me.
   
   as u wish


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org