>> Or maybe I misunderstood the docs and the timeout means the max. time
>> elapsed between receiving two chunks of data from the server?
> Yes. It's documented better here:
> http://docs.python-requests.org/en/master/user/advanced/#timeouts
>
> You can't specify a "total time" within which the op
On 2018-01-15, Nagy László Zsolt wrote:
>> In other words: if the server starts to send the response, but then
>> stops sending it (without closing the connection), then this will block
>> forever anyway.
> Or maybe I misunderstood the docs and the timeout means the max. time
> elapsed between rec
> In other words: if the server starts to send the response, but then
> stops sending it (without closing the connection), then this will block
> forever anyway.
Or maybe I misunderstood the docs and the timeout means the max. time
elapsed between receiving two chunks of data from the server?
--
> (a) are you setting daemon=True on the thread?
> (b) are you setting a timeout on the requests call?
Hmm setting the timeout might not be the solution. This is from the docs
of the requests module:
>
> Note
>
> |timeout| is not a time limit on the entire response download; rather,
> an exception
2018. 01. 13. 15:03 keltezéssel, Jon Ribbens írta:
> On 2018-01-13, Nagy László Zsolt wrote:
>> I have a multi threaded Windows service written in Python. It is running
>> on 3.6.2. Sometimes I cannot stop the service, because on of the
>> threads won't exit. I have narrowed down the problem to
On 2018-01-13, Nagy László Zsolt wrote:
> I have a multi threaded Windows service written in Python. It is running
> on 3.6.2. Sometimes I cannot stop the service, because on of the
> threads won't exit. I have narrowed down the problem to request and
> _lib.SSL_read.
(a) are you setting daemon=
On 13/01/18 11:34, Nagy László Zsolt wrote:
> Hi!
>
> I have a multi threaded Windows service written in Python. It is running
> on 3.6.2. Sometimes I cannot stop the service, because on of the
> threads won't exit. I have narrowed down the problem to request and
> _lib.SSL_read. I have used a mo
Hi!
I have a multi threaded Windows service written in Python. It is running
on 3.6.2. Sometimes I cannot stop the service, because on of the
threads won't exit. I have narrowed down the problem to request and
_lib.SSL_read. I have used a modified version of this gem:
http://code.activestate.com/