[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Reading multiple channels under the same session
[Thread Prev] | [Thread Next]
- Subject: Re: Reading multiple channels under the same session
- From: Alberto Garcia <agarciaillera@xxxxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Wed, 30 Jan 2019 11:09:29 -0800
- To: libssh@xxxxxxxxxx
- Cc: Andreas Schneider <asn@xxxxxxxxxxxxxx>
Andreas, You can use Till example in this thread along with this commands for the ssh client: ssh -vvv -o StrictHostKeyChecking=no -D 0.0.0.0:11223 10.104.1.115 -p 2222 -N and to make it crash just run: import requests > import threading > def do_request(): > while 1: > resp = requests.get('http://go.to', > proxies=dict(http='socks5://127.0.0.1:11223', > https='socks5:// 127.0.0.1 :11223')) > print(resp.status_code) > for i in range(0,5): > try: > t=threading.Thread(target=do_request) > t.start() > except: > print ("Error: unable to start thread") > while 1: > pass Let me know if you have any questions or you can't make it crash. Cheers On Wed, Jan 30, 2019 at 10:18 AM Alberto Garcia <agarciaillera@xxxxxxxxx> wrote: > We think it is because of a problem with libssh. Andreas maybe you can > bring some light to spot the bug? > > On Wed, Jan 30, 2019, 6:19 AM <g4-lisz@xxxxxxxxxxxx wrote: > >> On 30.01.19 09:27, Andreas Schneider wrote: >> > On Friday, January 25, 2019 3:26:10 PM CET g4-lisz@xxxxxxxxxxxx wrote: >> >> On 24.01.19 22:09, Alberto Garcia wrote: >> >>> Can you please post the link to the mentioned code? >> >>> Thanks >> >> Here you go. >> > Hi Till, >> > >> > if you send it as a patch I'm happy to add it to the examples dir. Even >> if the >> > code isn't the cleanest we can still fix that later. Our current >> examples are >> > also not the best ;-) >> >> Hi Andreas, >> >> Alberto found a test case where it always crashes... I at least have to >> fix this before we should conisder it as an example at all... Maybe as a >> bad example? ;-) >> >> Cheers, >> Till >> >> >> -- Alberto García Illera GPG Public Key <https://goo.gl/yshdwh>
Re: Reading multiple channels under the same session | g4-lisz@xxxxxxxxxxxx |
Reading multiple channels under the same session | Alberto Garcia <agarciaillera@xxxxxxxxx> |
Re: Reading multiple channels under the same session | Alberto Garcia <agarciaillera@xxxxxxxxx> |
Re: Reading multiple channels under the same session | g4-lisz@xxxxxxxxxxxx |
Re: Reading multiple channels under the same session | Andreas Schneider <asn@xxxxxxxxxxxxxx> |
Re: Reading multiple channels under the same session | g4-lisz@xxxxxxxxxxxx |
Re: Reading multiple channels under the same session | Alberto Garcia <agarciaillera@xxxxxxxxx> |