Re: [go-nuts] Re: My app hangs up at some point in net/http/h2_bundle.go. What is the better way to debug?

2020-11-12 Thread Denis Telyukh
> If you switch to http rather than http2 do you have the same issue?
No, I haven't.

>  have you tried running your code under the race detector?
Yes, I did.

> Since you encounter it on localhost I assume you can extract what is
needed based on the other issues cited.
It's not easy, but I could try.

чт, 12 нояб. 2020 г. в 22:07, Brian Candler :

> On Thursday, 12 November 2020 14:34:35 UTC, Robert Engels wrote:
>>
>> One thing to note, gRPC uses http2. If there were a bug like this lurking
>> in the library it would be far more common, so the most likely cause is
>> specific to your code.
>>
>
> To the OP: have you tried running your code under the race detector
> ?
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "golang-nuts" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/golang-nuts/CJwsb1H9mGg/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> golang-nuts+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/golang-nuts/8e2463b4-da04-4f1b-b09f-948d45954088o%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CAJmRHGBSVkUTg3L-8SbCBrYw-MqZFwV4Fd_jsUqN4wYyjN54RA%40mail.gmail.com.


Re: [go-nuts] Re: My app hangs up at some point in net/http/h2_bundle.go. What is the better way to debug?

2020-11-12 Thread Brian Candler
On Thursday, 12 November 2020 14:34:35 UTC, Robert Engels wrote:
>
> One thing to note, gRPC uses http2. If there were a bug like this lurking 
> in the library it would be far more common, so the most likely cause is 
> specific to your code.
>

To the OP: have you tried running your code under the race detector 
?

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/8e2463b4-da04-4f1b-b09f-948d45954088o%40googlegroups.com.


Re: [go-nuts] Re: My app hangs up at some point in net/http/h2_bundle.go. What is the better way to debug?

2020-11-12 Thread Robert Engels
After reading that issue and the related ones there does appear to be a live 
lock under heavy stress. I didn’t read too deeply because I am on a phone. 

I am guessing a small reproducible test case is required. Since you encounter 
it on localhost I assume you can extract what is needed based on the other 
issues cited. 

> On Nov 12, 2020, at 8:42 AM, Denis Telyukh  wrote:
> 
> 
> Could you, please, explain me what is producer in this case and what is 
> consumer? Is it web browser and web server? And what kind of anomalies do you 
> think I can find with netstat? I'm not sure what to look at, the traffic 
> seems fine to me.
> 
> Maybe this issue is related the same problem: 
> https://github.com/golang/go/issues/23559
> 
> четверг, 12 ноября 2020 г. в 21:34:35 UTC+7, ren...@ix.netcom.com: 
>> One thing to note, gRPC uses http2. If there were a bug like this lurking in 
>> the library it would be far more common, so the most likely cause is 
>> specific to your code. 
>> 
 On Nov 12, 2020, at 8:13 AM, Robert Engels  wrote:
 
>>> 
>> 
>>> Your issue report describes the same issue. 
>>> 
>>> If you switch to http rather than http2 do you have the same issue?
>>> 
>>> I am guessing that your consumer is blocked which eventually blocks your 
>>> producer when the buffers fill. 
>>> 
>>> I would continue to use the networking tools to diagnose. 
>>> 
> On Nov 12, 2020, at 3:22 AM, Denis Telyukh  wrote:
> 
 Better problem description after deeper debugging: 
 https://github.com/golang/go/issues/42534
 
 среда, 11 ноября 2020 г. в 13:21:56 UTC+7, Denis Telyukh: 
> OS: Manjaro 20.2 Nibia
> Kernel: x86_64 Linux 5.4.74-1-MANJARO
> 
> ср, 11 нояб. 2020 г. в 12:59, Kurtis Rader :
>> On Tue, Nov 10, 2020 at 9:39 PM Denis Telyukh  
>> wrote:
>>> 1. Got some stuck requests
>>> 2. netstat -atp
>>> tcp   25  0 dionysius-pc:52340  server-52-85-47-1:https 
>>> CLOSE_WAIT  1364/brave --type=u 
>>> tcp   25  0 dionysius-pc:40296  server-13-33-240-:https 
>>> CLOSE_WAIT  1364/brave --type=u 
>>> 3. A few second later netstat doesn't show any non-empty queues
>>> 4. But requests continue to hang (it will be endless)
>> 
>> 
>> The `netstat` command does not show "non-empty queues". It shows 
>> connections that exist between processes on your system and remote 
>> systems. The fact "a few second later netstat doesn't show any non-empty 
>> queues" means that your system has no open connections. Also, what 
>> platform (OS) are you using? The `netstat -atp` command makes no sense 
>> on macOS or Linux.
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 "golang-nuts" group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to golang-nuts...@googlegroups.com.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/golang-nuts/abf3d089-bbd2-4607-b6c3-68a2237213bfn%40googlegroups.com.
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to golang-nuts+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/golang-nuts/ee1dd302-1231-4460-9d0d-0557a3e1d8b6n%40googlegroups.com.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/2ED0B978-2D94-408C-9521-C1D64D6DFB7A%40ix.netcom.com.


Re: [go-nuts] Re: My app hangs up at some point in net/http/h2_bundle.go. What is the better way to debug?

2020-11-12 Thread Denis Telyukh
Could you, please, explain me what is producer in this case and what is 
consumer? Is it web browser and web server? And what kind of anomalies do 
you think I can find with netstat? I'm not sure what to look at, the 
traffic seems fine to me.

Maybe this issue is related the same problem: 
https://github.com/golang/go/issues/23559

четверг, 12 ноября 2020 г. в 21:34:35 UTC+7, ren...@ix.netcom.com: 

> One thing to note, gRPC uses http2. If there were a bug like this lurking 
> in the library it would be far more common, so the most likely cause is 
> specific to your code. 
>
> On Nov 12, 2020, at 8:13 AM, Robert Engels  wrote:
>
> 
>
> Your issue report describes the same issue. 
>
> If you switch to http rather than http2 do you have the same issue?
>
> I am guessing that your consumer is blocked which eventually blocks your 
> producer when the buffers fill. 
>
> I would continue to use the networking tools to diagnose. 
>
> On Nov 12, 2020, at 3:22 AM, Denis Telyukh  wrote:
>
> Better problem description after deeper debugging: 
> https://github.com/golang/go/issues/42534
>
> среда, 11 ноября 2020 г. в 13:21:56 UTC+7, Denis Telyukh: 
>
>> OS: Manjaro 20.2 Nibia
>> Kernel: x86_64 Linux 5.4.74-1-MANJARO
>>
>> ср, 11 нояб. 2020 г. в 12:59, Kurtis Rader :
>>
>>> On Tue, Nov 10, 2020 at 9:39 PM Denis Telyukh  
>>> wrote:
>>>
 1. Got some stuck requests
 2. netstat -atp
 tcp   25  0 dionysius-pc:52340  server-52-85-47-1:https 
 CLOSE_WAIT  1364/brave --type=u 
 tcp   25  0 dionysius-pc:40296  server-13-33-240-:https 
 CLOSE_WAIT  1364/brave --type=u 
 3. A few second later netstat doesn't show any non-empty queues
 4. But requests continue to hang (it will be endless)

>>>
>>> The `netstat` command does not show "non-empty queues". It shows 
>>> connections that exist between processes on your system and remote systems. 
>>> The fact "a few second later netstat doesn't show any non-empty queues" 
>>> means that your system has no open connections. Also, what platform (OS) 
>>> are you using? The `netstat -atp` command makes no sense on macOS or Linux.
>>>
>> -- 
> You received this message because you are subscribed to the Google Groups 
> "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to golang-nuts...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/golang-nuts/abf3d089-bbd2-4607-b6c3-68a2237213bfn%40googlegroups.com
>  
> 
> .
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/ee1dd302-1231-4460-9d0d-0557a3e1d8b6n%40googlegroups.com.


Re: [go-nuts] Re: My app hangs up at some point in net/http/h2_bundle.go. What is the better way to debug?

2020-11-12 Thread Robert Engels
One thing to note, gRPC uses http2. If there were a bug like this lurking in 
the library it would be far more common, so the most likely cause is specific 
to your code. 

> On Nov 12, 2020, at 8:13 AM, Robert Engels  wrote:
> 
> 
> Your issue report describes the same issue. 
> 
> If you switch to http rather than http2 do you have the same issue?
> 
> I am guessing that your consumer is blocked which eventually blocks your 
> producer when the buffers fill. 
> 
> I would continue to use the networking tools to diagnose. 
> 
>>> On Nov 12, 2020, at 3:22 AM, Denis Telyukh  wrote:
>>> 
>> Better problem description after deeper debugging: 
>> https://github.com/golang/go/issues/42534
>> 
>> среда, 11 ноября 2020 г. в 13:21:56 UTC+7, Denis Telyukh: 
>>> OS: Manjaro 20.2 Nibia
>>> Kernel: x86_64 Linux 5.4.74-1-MANJARO
>>> 
>>> ср, 11 нояб. 2020 г. в 12:59, Kurtis Rader :
 On Tue, Nov 10, 2020 at 9:39 PM Denis Telyukh  wrote:
> 1. Got some stuck requests
> 2. netstat -atp
> tcp   25  0 dionysius-pc:52340  server-52-85-47-1:https 
> CLOSE_WAIT  1364/brave --type=u 
> tcp   25  0 dionysius-pc:40296  server-13-33-240-:https 
> CLOSE_WAIT  1364/brave --type=u 
> 3. A few second later netstat doesn't show any non-empty queues
> 4. But requests continue to hang (it will be endless)
 
 
 The `netstat` command does not show "non-empty queues". It shows 
 connections that exist between processes on your system and remote 
 systems. The fact "a few second later netstat doesn't show any non-empty 
 queues" means that your system has no open connections. Also, what 
 platform (OS) are you using? The `netstat -atp` command makes no sense on 
 macOS or Linux.
>> 
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "golang-nuts" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to golang-nuts+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/golang-nuts/abf3d089-bbd2-4607-b6c3-68a2237213bfn%40googlegroups.com.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/A719F811-DB4C-4295-96AA-D6D26C80FB51%40ix.netcom.com.


Re: [go-nuts] Re: My app hangs up at some point in net/http/h2_bundle.go. What is the better way to debug?

2020-11-12 Thread Robert Engels
Your issue report describes the same issue. 

If you switch to http rather than http2 do you have the same issue?

I am guessing that your consumer is blocked which eventually blocks your 
producer when the buffers fill. 

I would continue to use the networking tools to diagnose. 

> On Nov 12, 2020, at 3:22 AM, Denis Telyukh  wrote:
> 
> Better problem description after deeper debugging: 
> https://github.com/golang/go/issues/42534
> 
> среда, 11 ноября 2020 г. в 13:21:56 UTC+7, Denis Telyukh: 
>> OS: Manjaro 20.2 Nibia
>> Kernel: x86_64 Linux 5.4.74-1-MANJARO
>> 
>> ср, 11 нояб. 2020 г. в 12:59, Kurtis Rader :
>>> On Tue, Nov 10, 2020 at 9:39 PM Denis Telyukh  wrote:
 1. Got some stuck requests
 2. netstat -atp
 tcp   25  0 dionysius-pc:52340  server-52-85-47-1:https 
 CLOSE_WAIT  1364/brave --type=u 
 tcp   25  0 dionysius-pc:40296  server-13-33-240-:https 
 CLOSE_WAIT  1364/brave --type=u 
 3. A few second later netstat doesn't show any non-empty queues
 4. But requests continue to hang (it will be endless)
>>> 
>>> 
>>> The `netstat` command does not show "non-empty queues". It shows 
>>> connections that exist between processes on your system and remote systems. 
>>> The fact "a few second later netstat doesn't show any non-empty queues" 
>>> means that your system has no open connections. Also, what platform (OS) 
>>> are you using? The `netstat -atp` command makes no sense on macOS or Linux.
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to golang-nuts+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/golang-nuts/abf3d089-bbd2-4607-b6c3-68a2237213bfn%40googlegroups.com.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/6EA25818-1EDA-4BDB-83EC-57C3A2191142%40ix.netcom.com.


Re: [go-nuts] Re: My app hangs up at some point in net/http/h2_bundle.go. What is the better way to debug?

2020-11-12 Thread Denis Telyukh
Better problem description after deeper 
debugging: https://github.com/golang/go/issues/42534

среда, 11 ноября 2020 г. в 13:21:56 UTC+7, Denis Telyukh: 

> OS: Manjaro 20.2 Nibia
> Kernel: x86_64 Linux 5.4.74-1-MANJARO
>
> ср, 11 нояб. 2020 г. в 12:59, Kurtis Rader :
>
>> On Tue, Nov 10, 2020 at 9:39 PM Denis Telyukh  
>> wrote:
>>
>>> 1. Got some stuck requests
>>> 2. netstat -atp
>>> tcp   25  0 dionysius-pc:52340  server-52-85-47-1:https 
>>> CLOSE_WAIT  1364/brave --type=u 
>>> tcp   25  0 dionysius-pc:40296  server-13-33-240-:https 
>>> CLOSE_WAIT  1364/brave --type=u 
>>> 3. A few second later netstat doesn't show any non-empty queues
>>> 4. But requests continue to hang (it will be endless)
>>>
>>
>> The `netstat` command does not show "non-empty queues". It shows 
>> connections that exist between processes on your system and remote systems. 
>> The fact "a few second later netstat doesn't show any non-empty queues" 
>> means that your system has no open connections. Also, what platform (OS) 
>> are you using? The `netstat -atp` command makes no sense on macOS or Linux.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/abf3d089-bbd2-4607-b6c3-68a2237213bfn%40googlegroups.com.


Re: [go-nuts] Re: My app hangs up at some point in net/http/h2_bundle.go. What is the better way to debug?

2020-11-10 Thread Denis Telyukh
OS: Manjaro 20.2 Nibia
Kernel: x86_64 Linux 5.4.74-1-MANJARO

ср, 11 нояб. 2020 г. в 12:59, Kurtis Rader :

> On Tue, Nov 10, 2020 at 9:39 PM Denis Telyukh 
> wrote:
>
>> 1. Got some stuck requests
>> 2. netstat -atp
>> tcp   25  0 dionysius-pc:52340  server-52-85-47-1:https
>> CLOSE_WAIT  1364/brave --type=u
>> tcp   25  0 dionysius-pc:40296  server-13-33-240-:https
>> CLOSE_WAIT  1364/brave --type=u
>> 3. A few second later netstat doesn't show any non-empty queues
>> 4. But requests continue to hang (it will be endless)
>>
>
> The `netstat` command does not show "non-empty queues". It shows
> connections that exist between processes on your system and remote systems.
> The fact "a few second later netstat doesn't show any non-empty queues"
> means that your system has no open connections. Also, what platform (OS)
> are you using? The `netstat -atp` command makes no sense on macOS or Linux.
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CAJmRHGCTUeqrR%3DeRA-t%3DsvOAb8vQSLgWKrh4mZwo8vaRm_iO_g%40mail.gmail.com.


Re: [go-nuts] Re: My app hangs up at some point in net/http/h2_bundle.go. What is the better way to debug?

2020-11-10 Thread Kurtis Rader
On Tue, Nov 10, 2020 at 9:39 PM Denis Telyukh 
wrote:

> 1. Got some stuck requests
> 2. netstat -atp
> tcp   25  0 dionysius-pc:52340  server-52-85-47-1:https
> CLOSE_WAIT  1364/brave --type=u
> tcp   25  0 dionysius-pc:40296  server-13-33-240-:https
> CLOSE_WAIT  1364/brave --type=u
> 3. A few second later netstat doesn't show any non-empty queues
> 4. But requests continue to hang (it will be endless)
>

The `netstat` command does not show "non-empty queues". It shows
connections that exist between processes on your system and remote systems.
The fact "a few second later netstat doesn't show any non-empty queues"
means that your system has no open connections. Also, what platform (OS)
are you using? The `netstat -atp` command makes no sense on macOS or Linux.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CABx2%3DD-FJ_CtiTx23RVtSnxtBUxzL7F3dp6FGd9_TOjDg7tPng%40mail.gmail.com.


Re: [go-nuts] Re: My app hangs up at some point in net/http/h2_bundle.go. What is the better way to debug?

2020-11-10 Thread Denis Telyukh
1. Got some stuck requests
2. netstat -atp
tcp   25  0 dionysius-pc:52340  server-52-85-47-1:https 
CLOSE_WAIT  1364/brave --type=u 
tcp   25  0 dionysius-pc:40296  server-13-33-240-:https 
CLOSE_WAIT  1364/brave --type=u 
3. A few second later netstat doesn't show any non-empty queues
4. But requests continue to hang (it will be endless)


вторник, 10 ноября 2020 г. в 23:12:21 UTC+7, ren...@ix.netcom.com: 

> You can easily have the same problem on localhost if the producer is 
> faster than the consumer. 
>
> You can use netstat in the localhost as well. 
>
> On Nov 10, 2020, at 9:36 AM, Denis Telyukh  wrote:
>
> 
>
> Thanks for your advice. But I have this problem on localhost also, I doubt 
> that problem in network capacity :-(
>
> вт, 10 нояб. 2020 г. в 19:09, Robert Engels :
>
>> You’ve most likely exhausted the network capacity. You need to use tools 
>> like netperf and wireshark. Start with netstat and review the outgoing 
>> queue sizes. 
>>
>> On Nov 10, 2020, at 4:46 AM, Denis Telyukh  wrote:
>>
>> More complex problem description with images: 
>> https://caddy.community/t/sometimes-http-2-request-hangs-up-need-help-with-debugging/10439/2
>>  
>>
>> вторник, 10 ноября 2020 г. в 10:25:58 UTC+7, Denis Telyukh: 
>>
>>> Thanks! Maybe it will help.
>>>
>>> вт, 10 нояб. 2020 г. в 01:21, seank...@gmail.com :
>>>
 maybe setting GODEBUG=http2debug=2 to spit out some logs?

 On Monday, November 9, 2020 at 5:49:57 PM UTC+1 telyuk...@gmail.com 
 wrote:

> Hello!
>
> I use third-party software with my own code to build reverse-proxy, 
> which supports http/2. Sometimes requests hang up with infinite waiting. 
> With Delve I found, that it happens in 
> https://golang.org/src/net/http/h2_bundle.go in writeHeaders or in 
> writeDataFromHandler. But I have no any idea why it happens. Which tools 
> should I use to find the reason of such behaviour?
>
> Denis

 -- 
 You received this message because you are subscribed to a topic in the 
 Google Groups "golang-nuts" group.
 To unsubscribe from this topic, visit 
 https://groups.google.com/d/topic/golang-nuts/CJwsb1H9mGg/unsubscribe.
 To unsubscribe from this group and all its topics, send an email to 
 golang-nuts...@googlegroups.com.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/golang-nuts/94e4b5cd-6005-4a52-916f-9e1a88137399n%40googlegroups.com
  
 
 .

>>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "golang-nuts" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to golang-nuts...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/golang-nuts/a9ac428d-1389-4278-be9a-273ae95751b0n%40googlegroups.com
>>  
>> 
>> .
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/bdffc045-afd0-4096-8fa3-9741cfe92e8an%40googlegroups.com.


Re: [go-nuts] Re: My app hangs up at some point in net/http/h2_bundle.go. What is the better way to debug?

2020-11-10 Thread Robert Engels
You can easily have the same problem on localhost if the producer is faster 
than the consumer. 

You can use netstat in the localhost as well. 

> On Nov 10, 2020, at 9:36 AM, Denis Telyukh  wrote:
> 
> 
> Thanks for your advice. But I have this problem on localhost also, I doubt 
> that problem in network capacity :-(
> 
> вт, 10 нояб. 2020 г. в 19:09, Robert Engels :
>> You’ve most likely exhausted the network capacity. You need to use tools 
>> like netperf and wireshark. Start with netstat and review the outgoing queue 
>> sizes. 
>> 
 On Nov 10, 2020, at 4:46 AM, Denis Telyukh  wrote:
 
>>> More complex problem description with images: 
>>> https://caddy.community/t/sometimes-http-2-request-hangs-up-need-help-with-debugging/10439/2
>>>  
>>> 
>>> вторник, 10 ноября 2020 г. в 10:25:58 UTC+7, Denis Telyukh: 
 Thanks! Maybe it will help.
 
 вт, 10 нояб. 2020 г. в 01:21, seank...@gmail.com :
 
> maybe setting GODEBUG=http2debug=2 to spit out some logs?
> 
>>> On Monday, November 9, 2020 at 5:49:57 PM UTC+1 telyuk...@gmail.com 
>>> wrote:
>>> Hello!
>>> 
>>> I use third-party software with my own code to build reverse-proxy, 
>>> which supports http/2. Sometimes requests hang up with infinite 
>>> waiting. With Delve I found, that it happens in 
>>> https://golang.org/src/net/http/h2_bundle.go in writeHeaders or in 
>>> writeDataFromHandler. But I have no any idea why it happens. Which 
>>> tools should I use to find the reason of such behaviour?
>>> 
>>> Denis
>> 
> -- 
> You received this message because you are subscribed to a topic in the 
> Google Groups "golang-nuts" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/golang-nuts/CJwsb1H9mGg/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to 
> golang-nuts...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/golang-nuts/94e4b5cd-6005-4a52-916f-9e1a88137399n%40googlegroups.com.
>>> 
>>> -- 
>>> You received this message because you are subscribed to the Google Groups 
>>> "golang-nuts" group.
>>> To unsubscribe from this group and stop receiving emails from it, send an 
>>> email to golang-nuts+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/golang-nuts/a9ac428d-1389-4278-be9a-273ae95751b0n%40googlegroups.com.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/653705E8-DB51-4B54-BE08-B77ABE6424A3%40ix.netcom.com.


Re: [go-nuts] Re: My app hangs up at some point in net/http/h2_bundle.go. What is the better way to debug?

2020-11-10 Thread Denis Telyukh
Thanks for your advice. But I have this problem on localhost also, I doubt
that problem in network capacity :-(

вт, 10 нояб. 2020 г. в 19:09, Robert Engels :

> You’ve most likely exhausted the network capacity. You need to use tools
> like netperf and wireshark. Start with netstat and review the outgoing
> queue sizes.
>
> On Nov 10, 2020, at 4:46 AM, Denis Telyukh 
> wrote:
>
> More complex problem description with images:
> https://caddy.community/t/sometimes-http-2-request-hangs-up-need-help-with-debugging/10439/2
>
>
> вторник, 10 ноября 2020 г. в 10:25:58 UTC+7, Denis Telyukh:
>
>> Thanks! Maybe it will help.
>>
>> вт, 10 нояб. 2020 г. в 01:21, seank...@gmail.com :
>>
>>> maybe setting GODEBUG=http2debug=2 to spit out some logs?
>>>
>>> On Monday, November 9, 2020 at 5:49:57 PM UTC+1 telyuk...@gmail.com
>>> wrote:
>>>
 Hello!

 I use third-party software with my own code to build reverse-proxy,
 which supports http/2. Sometimes requests hang up with infinite waiting.
 With Delve I found, that it happens in
 https://golang.org/src/net/http/h2_bundle.go in writeHeaders or in
 writeDataFromHandler. But I have no any idea why it happens. Which tools
 should I use to find the reason of such behaviour?

 Denis
>>>
>>> --
>>> You received this message because you are subscribed to a topic in the
>>> Google Groups "golang-nuts" group.
>>> To unsubscribe from this topic, visit
>>> https://groups.google.com/d/topic/golang-nuts/CJwsb1H9mGg/unsubscribe.
>>> To unsubscribe from this group and all its topics, send an email to
>>> golang-nuts...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/golang-nuts/94e4b5cd-6005-4a52-916f-9e1a88137399n%40googlegroups.com
>>> 
>>> .
>>>
>> --
> You received this message because you are subscribed to the Google Groups
> "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to golang-nuts+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/golang-nuts/a9ac428d-1389-4278-be9a-273ae95751b0n%40googlegroups.com
> 
> .
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CAJmRHGCax9ZRuo4x6NQdfiAtZWjCqc5u6Q3rB_4bsZVzpkMdwQ%40mail.gmail.com.


Re: [go-nuts] Re: My app hangs up at some point in net/http/h2_bundle.go. What is the better way to debug?

2020-11-10 Thread Robert Engels
You’ve most likely exhausted the network capacity. You need to use tools like 
netperf and wireshark. Start with netstat and review the outgoing queue sizes. 

> On Nov 10, 2020, at 4:46 AM, Denis Telyukh  wrote:
> 
> More complex problem description with images: 
> https://caddy.community/t/sometimes-http-2-request-hangs-up-need-help-with-debugging/10439/2
>  
> 
> вторник, 10 ноября 2020 г. в 10:25:58 UTC+7, Denis Telyukh: 
>> Thanks! Maybe it will help.
>> 
>> вт, 10 нояб. 2020 г. в 01:21, seank...@gmail.com :
>> 
>>> maybe setting GODEBUG=http2debug=2 to spit out some logs?
>>> 
> On Monday, November 9, 2020 at 5:49:57 PM UTC+1 telyuk...@gmail.com wrote:
> Hello!
> 
> I use third-party software with my own code to build reverse-proxy, which 
> supports http/2. Sometimes requests hang up with infinite waiting. With 
> Delve I found, that it happens in 
> https://golang.org/src/net/http/h2_bundle.go in writeHeaders or in 
> writeDataFromHandler. But I have no any idea why it happens. Which tools 
> should I use to find the reason of such behaviour?
> 
> Denis
 
>>> -- 
>>> You received this message because you are subscribed to a topic in the 
>>> Google Groups "golang-nuts" group.
>>> To unsubscribe from this topic, visit 
>>> https://groups.google.com/d/topic/golang-nuts/CJwsb1H9mGg/unsubscribe.
>>> To unsubscribe from this group and all its topics, send an email to 
>>> golang-nuts...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/golang-nuts/94e4b5cd-6005-4a52-916f-9e1a88137399n%40googlegroups.com.
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to golang-nuts+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/golang-nuts/a9ac428d-1389-4278-be9a-273ae95751b0n%40googlegroups.com.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/439630DF-8B78-4E7B-AFD8-5BC7D9C668ED%40ix.netcom.com.


Re: [go-nuts] Re: My app hangs up at some point in net/http/h2_bundle.go. What is the better way to debug?

2020-11-10 Thread Denis Telyukh
More complex problem description with 
images: 
https://caddy.community/t/sometimes-http-2-request-hangs-up-need-help-with-debugging/10439/2
 

вторник, 10 ноября 2020 г. в 10:25:58 UTC+7, Denis Telyukh: 

> Thanks! Maybe it will help.
>
> вт, 10 нояб. 2020 г. в 01:21, seank...@gmail.com :
>
>> maybe setting GODEBUG=http2debug=2 to spit out some logs?
>>
>> On Monday, November 9, 2020 at 5:49:57 PM UTC+1 telyuk...@gmail.com 
>> wrote:
>>
>>> Hello!
>>>
>>> I use third-party software with my own code to build reverse-proxy, 
>>> which supports http/2. Sometimes requests hang up with infinite waiting. 
>>> With Delve I found, that it happens in 
>>> https://golang.org/src/net/http/h2_bundle.go in writeHeaders or in 
>>> writeDataFromHandler. But I have no any idea why it happens. Which tools 
>>> should I use to find the reason of such behaviour?
>>>
>>> Denis
>>
>> -- 
>> You received this message because you are subscribed to a topic in the 
>> Google Groups "golang-nuts" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/golang-nuts/CJwsb1H9mGg/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to 
>> golang-nuts...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/golang-nuts/94e4b5cd-6005-4a52-916f-9e1a88137399n%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/a9ac428d-1389-4278-be9a-273ae95751b0n%40googlegroups.com.


Re: [go-nuts] Re: My app hangs up at some point in net/http/h2_bundle.go. What is the better way to debug?

2020-11-09 Thread Denis Telyukh
Thanks! Maybe it will help.

вт, 10 нояб. 2020 г. в 01:21, seank...@gmail.com :

> maybe setting GODEBUG=http2debug=2 to spit out some logs?
>
> On Monday, November 9, 2020 at 5:49:57 PM UTC+1 telyuk...@gmail.com wrote:
>
>> Hello!
>>
>> I use third-party software with my own code to build reverse-proxy, which
>> supports http/2. Sometimes requests hang up with infinite waiting. With
>> Delve I found, that it happens in
>> https://golang.org/src/net/http/h2_bundle.go in writeHeaders or in
>> writeDataFromHandler. But I have no any idea why it happens. Which tools
>> should I use to find the reason of such behaviour?
>>
>> Denis
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "golang-nuts" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/golang-nuts/CJwsb1H9mGg/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> golang-nuts+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/golang-nuts/94e4b5cd-6005-4a52-916f-9e1a88137399n%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CAJmRHGAea0%2BMydnjY65sgFEoOiWcQdonAf2f5NvnjBT2CfyhYQ%40mail.gmail.com.


[go-nuts] Re: My app hangs up at some point in net/http/h2_bundle.go. What is the better way to debug?

2020-11-09 Thread seank...@gmail.com
maybe setting GODEBUG=http2debug=2 to spit out some logs?

On Monday, November 9, 2020 at 5:49:57 PM UTC+1 telyuk...@gmail.com wrote:

> Hello!
>
> I use third-party software with my own code to build reverse-proxy, which 
> supports http/2. Sometimes requests hang up with infinite waiting. With 
> Delve I found, that it happens in 
> https://golang.org/src/net/http/h2_bundle.go in writeHeaders or in 
> writeDataFromHandler. But I have no any idea why it happens. Which tools 
> should I use to find the reason of such behaviour?
>
> Denis

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/94e4b5cd-6005-4a52-916f-9e1a88137399n%40googlegroups.com.