On 24/02/2019 15:55, Michael Van Canneyt via lazarus wrote:


On Sun, 24 Feb 2019, Martin Frb via lazarus wrote:

So it hangs in openssl.

I think that is a premature conclusion :)
I should have said:

"In this specific case, it was in openssl"
Which then is an observation.

But you could, next time, set a breakpoint at the line/address where it returns to opm (or pascal code).

#8  0x000000000192033f in RECV (this=0x7fa2f2139280, BUFFER=0, COUNT=4096) at fcl-net/src/sslsockets.pp:436 #9  0x00000000019175c4 in READ (this=0x7fa2f214b6e0, BUFFER=0, COUNT=4096) at fcl-net/src/ssockets.pp:449 #10 0x000000000199bcdd in FILLBUFFER (parentfp=0x7fa2fc603230) at fpcmod/opkman_httpclient.pas:708 #11 0x000000000199ba31 in READSTRING (this=0x7fa3058e08e0, S=0x0) at fpcmod/opkman_httpclient.pas:730 #12 0x000000000199c165 in READRESPONSEHEADERS (this=0x7fa3058e08e0) at fpcmod/opkman_httpclient.pas:835

|select-frame 10
b +0

^^^^ select the frame, set a breakpoint

then
r
^^ run

That should tell, if the socket call returns. (and then allow to find where in the pascal code it loops (how many further frames back will it go?)

|

Which means the http request can not be aborted. (gracefully)

How up to date is your openssl?

System installed version, so 1.0.x. I recently updated my packages.
From the discussions on the git buck, it appears (I may be wrong) the issue was fixed about one week back. (and then it depends when that made it into your distro).

So if you recently updated, you may have updated to include the issue (depends on the outcome of the above)
Anyway that is only one possibility.

Above gdb steps should get as closer to the issue (either if it is ssl, or where in the pascal code to look for it).

----
As usual, the issue is that it does not (has not yet) happened to me (Windows/Fedora 28). Also I am not the maintainer of httpclient, nor of opm. So I can only offer limited help. (I did have a look at opm in the past, so that's why I jumped in)



-- 
_______________________________________________
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus

Reply via email to