Skip to content

Handle timeouts more gracefully #57

@Kaligule

Description

@Kaligule

Currently, when a timeout occurs, a new window is opened. It will show something like the following:

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:02 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:02 --:--:--     0
curl: (28) Failed to connect to www.google.de port 81 after 2704 ms: Connection timed out

The echo area displays Code block evaluation complete.

While nothing of this is wrong, it is also a bit anointing for testing because you have to close the window manually.

desired behavior

It would be way cooler if on timeouts we could just get the error message in the echo area:

curl: (28) Failed to connect to www.google.de port 81 after 2704 ms: Connection timed out

How to reproduce

The above output was produced with the following code:

#+begin_src http :max-time 3
GET www.google.de:81
#+end_src

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions