|
2020-09-07
| ||
| 16:28 | • Closed ticket [5f37423f27]: http::geturl: endless wait when server is not respon... artifact: 4c798a092c user: oehhar | |
| 16:19 | • New ticket [5f37423f27]. artifact: 389ca169dd user: oehhar | |
http::geturl: endless wait when server is not responding
Closed / Invalid5f37423f2721a320b142e6e5a0af150aa1f79a0eCreated 6 years agoUpdated 6 years ago
Descriptionwiki2020-09-07 16:19:12
http::geturl is waiting for an infinite time, if http server is not responding.
There is no timeout within the http package when waiting for an answer. When a http server does not answer, the http package waits forever.
But here is a constructed example:
An example may be constructed by two wish consoles.
The server does not answer:
% socket -server accept 30030
sock040253F8
2 % proc accept args {}
The client asks the server:
% package require http
2.9.1
% catch {http::geturl http://localhost:30030} h
%
The catch returns when the server wish console is closed.
I am not sure, if this is a real issue. I just write a ticket here to document it. My real live example was to contact a http server using https, which results also in an endless wait.
Thank you all, Harald
oehharplain2020-09-07 16:28:36
Sorry, use the "-timeout" option and all works fine. Sorry, Harald
Log in (anonymous is fine) to add a comment.