[go-nuts] Re: https://http2.golang.org/ shows http/2 disabled on chrome but it's not!

2016-12-30 Thread Mahdi Ziraki
something really strange happened, I tried my sample code with proxy and it 
responded with http/2 but when I used it without proxy it responded with 
http/1.1, how could this happen?! isn't it supposed to be the other way 
around?!

On Friday, December 30, 2016 at 1:46:30 AM UTC+3:30, Dave Cheney wrote:
>
> Can any windows users reproduce this issue?
>
> On Friday, 30 December 2016 08:48:36 UTC+11, Mahdi Ziraki wrote:
>>
>> it's response with http/1.1 not just in chrome for windows, it has same 
>> issue with edge & firefox too! and it's behaving like this just for golang 
>> code, it's ok for other sites (google, youtube & etc.)
>>
>> On Friday, December 30, 2016 at 1:09:02 AM UTC+3:30, Dave Cheney wrote:
>>>
>>> Right, so it's a bug with chrome on windows. 
>>
>>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[go-nuts] Re: https://http2.golang.org/ shows http/2 disabled on chrome but it's not!

2016-12-29 Thread Mahdi Ziraki
nothing found!

On Friday, December 30, 2016 at 2:59:33 AM UTC+3:30, 
r...@skyportsystems.com wrote:
>
> is it possible your windows host is behind either an explicit proxy or a 
> transparent proxy (like bluecoat)? 
>
> for the explicit case, 
>
> reg query 
> "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet 
> Settings"
>
> look for "proxyserver" or "AutoConfigURL"
>
>
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[go-nuts] Re: https://http2.golang.org/ shows http/2 disabled on chrome but it's not!

2016-12-29 Thread Mahdi Ziraki
can you suggest any solution about how can I fix this?

On Friday, December 30, 2016 at 1:46:30 AM UTC+3:30, Dave Cheney wrote:
>
> Can any windows users reproduce this issue?
>
> On Friday, 30 December 2016 08:48:36 UTC+11, Mahdi Ziraki wrote:
>>
>> it's response with http/1.1 not just in chrome for windows, it has same 
>> issue with edge & firefox too! and it's behaving like this just for golang 
>> code, it's ok for other sites (google, youtube & etc.)
>>
>> On Friday, December 30, 2016 at 1:09:02 AM UTC+3:30, Dave Cheney wrote:
>>>
>>> Right, so it's a bug with chrome on windows. 
>>
>>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[go-nuts] Re: https://http2.golang.org/ shows http/2 disabled on chrome but it's not!

2016-12-29 Thread Mahdi Ziraki
so far:
firefox & chrome Ubuntu 16.0.4 works fine.
firefox & chrome Android 7.1.1 works fine.
edge, firefox & chrome Windows 10 returns http/1.1 (but it works fine with 
"github.com/davecheney/httpstat")

On Friday, December 30, 2016 at 12:11:21 AM UTC+3:30, Mahdi Ziraki wrote:
>
>
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[go-nuts] Re: https://http2.golang.org/ shows http/2 disabled on chrome but it's not!

2016-12-29 Thread Mahdi Ziraki
it's response with http/1.1 not just in chrome for windows, it has same 
issue with edge & firefox too! and it's behaving like this just for golang 
code, it's ok for other sites (google, youtube & etc.)

On Friday, December 30, 2016 at 1:09:02 AM UTC+3:30, Dave Cheney wrote:
>
> Right, so it's a bug with chrome on windows. 

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[go-nuts] Re: https://http2.golang.org/ shows http/2 disabled on chrome but it's not!

2016-12-29 Thread Mahdi Ziraki
I tested httpstat and got http/2, so how http2 in all windows browsers 
(edge, firefox, chrome) have same bug?!

On Friday, December 30, 2016 at 1:01:38 AM UTC+3:30, Dave Cheney wrote:
>
> You could try 
>
> GitHub.com/davecheney/httpstat 
>
> Which is a simple curl replacement written in Go which supports http/2 
> natively. 
>
> If that is able to negotiate a http/2 request then the problem is likely 
> on your windows machine. 
>
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[go-nuts] Re: https://http2.golang.org/ shows http/2 disabled on chrome but it's not!

2016-12-29 Thread Mahdi Ziraki
I tested this on 2 PCs and got same issue.
then on android it was ok.
at last on ubuntu it was ok too.

On Friday, December 30, 2016 at 1:00:14 AM UTC+3:30, Dave Cheney wrote:
>
> Either this is a bug in chrome on windows, or it's something related to 
> your network setup. 
>
> I don't think the bug is in Go's http/2 implementation. 
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[go-nuts] Re: https://http2.golang.org/ shows http/2 disabled on chrome but it's not!

2016-12-29 Thread Mahdi Ziraki
I used this sample code:

package main

import (
"fmt"
"log"
"net/http"
"strings"
)

func main() {
http.HandleFunc("/", func(w http.ResponseWriter, req *http.Request) {
w.Write([]byte(formatRequest(req)))
})
log.Fatalln(http.ListenAndServeTLS(":443", "certificate.crt", 
"private.key", nil))
}

func formatRequest(r *http.Request) string {
var request []string
url := fmt.Sprintf("%v %v %v", r.Method, r.URL, r.Proto)
request = append(request, url)
request = append(request, fmt.Sprintf("Host: %v", r.Host))
for name, headers := range r.Header {
name = strings.ToLower(name)
for _, h := range headers {
request = append(request, fmt.Sprintf("%v: %v", name, h))
}
}
return strings.Join(request, "\n")
}

to test it h2 on myself and it's behaving like http2.golang.org too.
see: https://goshop.ddns.net/ (it's ok on linux & android but not in 
windows!)

On Friday, December 30, 2016 at 12:50:20 AM UTC+3:30, Dave Cheney wrote:
>
> Do you have any av software on your computer that may be enforcing a proxy?
>
> Does your environment enforce a proxy?
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[go-nuts] Re: https://http2.golang.org/ shows http/2 disabled on chrome but it's not!

2016-12-29 Thread Mahdi Ziraki
yes, but I use same VPN that I use in my phone! but it's behaving like this 
only on Windows, and it's ok on Linux Ubuntu & Android!

On Friday, December 30, 2016 at 12:50:20 AM UTC+3:30, Dave Cheney wrote:
>
> Do you have any av software on your computer that may be enforcing a proxy?
>
> Does your environment enforce a proxy?
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[go-nuts] Re: https://http2.golang.org/ shows http/2 disabled on chrome but it's not!

2016-12-29 Thread Mahdi Ziraki
it's fine in chrome for android but not in chrome for windows (or any other 
browsers for windows)!

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[go-nuts] https://http2.golang.org/ shows http/2 disabled on chrome but it's not!

2016-12-29 Thread Mahdi Ziraki


-- 
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.
For more options, visit https://groups.google.com/d/optout.


[go-nuts] Re: NPN disabled in chrome

2016-12-29 Thread Mahdi Ziraki
I found out NPN is not the issue, because golang supports ALPN but I don't 
know what's the reason to this issue.

I ran a test on a PC & Android and got this:
https://github.com/golang/go/issues/18462#issuecomment-269681906

On Thursday, December 29, 2016 at 9:49:16 PM UTC+3:30, Mahdi Ziraki wrote:
>
> today I noticed my project stopped to serve http/2 and serves http/1.1 
> after lots of search I found this:
>
>
> https://ma.ttias.be/day-google-chrome-disables-http2-nearly-everyone-may-31st-2016/
>
> and I noticed http2.golang.org stopped working correctly like my project 
> in chrome v55 for Windows.
>
> I want to know anyone else has this issue or is just me?
>
> BTW: http2.golang.org in google chrome for android works fine!
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.