wget-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Wget-dev] wget2 | WSL kernel issue & workaround (#370)


From: jhd
Subject: Re: [Wget-dev] wget2 | WSL kernel issue & workaround (#370)
Date: Wed, 26 Dec 2018 07:36:33 +0000

Inspired by 
https://gitlab.com/gnuwget/wget2/merge_requests/319/diffs?commit_id=90ea11ca38632275768b7e928ac0db3934dee8bb
 I began looking for a way to reliably detect WSL to change its default setting 
for tcp-fastopen, if not outright disable it. 

For Python at least, I came cross this:
https://github.com/scivision/pybashutils/blob/master/pybashutils/os_detect.py

And as for C, I came across this: 
https://github.com/Microsoft/WSL/issues/423#issuecomment-221627364
```
I can't promise that we'll never change the content of these ProcFs files, but 
I think it's unlikely we'll change it to something that doesn't contain 
"Microsoft" or "WSL".

/proc/sys/kernel/osrelease
/proc/version
```

Also interesting to point out that `uname -r | sed -n 's/.*\( *Microsoft 
*\).*/\1/p'` will always output 'Microsoft'.

-- 
Reply to this email directly or view it on GitLab: 
https://gitlab.com/gnuwget/wget2/issues/370#note_127262456
You're receiving this email because of your account on gitlab.com.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]