Timeout with large outputs
When the output (either on stdout or stderr) is quite large the test systematically timeouts.
Here is a simple example:
# Displays 65,537 random ACGT
cat /dev/urandom | tr -dc ACGT | head -c 65537
rwl65537: [ACGT]
There is no timeout for 65,536 characters (hmm… this value reminds me of something…)
- Show closed items
Activity
-
Newest first Oldest first
-
Show all activity Show comments only Show history only
- Author Owner
Confirmed. Could this come from subtilities in
POpen
?See also #4 (closed).
By Mathieu Giraud on 2018-07-19T12:45:43 (imported from GitLab project)
By Mathieu Giraud on 2018-07-19T12:45:43 (imported from GitLab)
- Mathieu Giraud mentioned in issue #23 (closed)
mentioned in issue #23 (closed)
By Mikaël Salson on 2018-10-31T07:53:34 (imported from GitLab project)
By Mathieu Giraud on 2018-10-31T07:53:34 (imported from GitLab)
- Mathieu Giraud mentioned in commit f1c6222d
mentioned in commit f1c6222d
By Mathieu Giraud on 2018-11-23T16:34:57 (imported from GitLab project)
By Mathieu Giraud on 2018-11-23T16:34:57 (imported from GitLab)
- Mathieu Giraud mentioned in merge request !3 (merged)
mentioned in merge request !3 (merged)
By Mathieu Giraud on 2018-11-23T16:36:04 (imported from GitLab project)
By Mathieu Giraud on 2018-11-23T16:36:04 (imported from GitLab)
- Author Owner
https://thraxil.org/users/anders/posts/2008/03/13/Subprocess-Hanging-PIPE-is-your-enemy/ and numerous SO posts.
A simple solution is to use... a temporary file. (We do not want to force
--log
because we may do not have write permission there.)By Mathieu Giraud on 2018-11-23T16:49:51 (imported from GitLab project)
By Mathieu Giraud on 2018-11-23T16:49:51 (imported from GitLab)
- Mathieu Giraud mentioned in commit cfd72d90
mentioned in commit cfd72d90
By Mathieu Giraud on 2018-11-23T16:57:39 (imported from GitLab project)
By Mathieu Giraud on 2018-11-23T16:57:39 (imported from GitLab)
- Mathieu Giraud mentioned in commit fd4e2721
mentioned in commit fd4e2721
By Mathieu Giraud on 2018-11-23T17:05:32 (imported from GitLab project)
By Mathieu Giraud on 2018-11-23T17:05:32 (imported from GitLab)
- Mathieu Giraud mentioned in commit e20d5f28
mentioned in commit e20d5f28
By Mathieu Giraud on 2018-11-23T17:05:32 (imported from GitLab project)
By Mathieu Giraud on 2018-11-23T17:05:32 (imported from GitLab)
- Mathieu Giraud closed via commit fd4e2721
closed via commit fd4e2721
By Mathieu Giraud on 2018-11-23T17:25:29 (imported from GitLab project)
By Mathieu Giraud on 2018-11-23T17:25:29 (imported from GitLab)
- Mathieu Giraud mentioned in commit 8f711a78
mentioned in commit 8f711a78
By Mikaël Salson on 2018-11-23T17:25:29 (imported from GitLab project)
By Mathieu Giraud on 2018-11-23T17:25:29 (imported from GitLab)
- Mathieu Giraud closed via merge request !3 (merged)
closed via merge request !3 (merged)
By Mikaël Salson on 2018-11-23T17:25:29 (imported from GitLab project)
By Mathieu Giraud on 2018-11-23T17:25:29 (imported from GitLab)
- Mathieu Giraud changed milestone to %2.0.0
changed milestone to %2.0.0
By Mathieu Giraud on 2019-03-26T15:34:07 (imported from GitLab project)
By Mathieu Giraud on 2019-03-26T15:34:07 (imported from GitLab)