bugGNU Octave - Bugs: bug #64826, webread timeout option not...

 
 

bug #64826: webread timeout option not respected

Submitter:  Muhali <muhali>
Submitted:  Fri 27 Oct 2023 03:54:02 PM UTC
   
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 8.3.0 Operating System:  * Any
Fixed Release:  8.4.0 Planned Release:  8.4.0
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 12 Jan 2024 09:29:15 PM UTC, comment #3: 

Verified.  Marking as Fixed and closing report.

Rik <rik5>
Group administrator
Sun 29 Oct 2023 03:25:11 PM UTC, comment #2: 

Because this also fixes another bug (timeout in milliseconds was passed to setting in seconds), I pushed the patch to the stable branch:
https://hg.savannah.gnu.org/hgweb/octave/rev/9c3bffcc2fb9

Marking as ready for test.

Markus Mützel <mmuetzel>
Group administrator
Sat 28 Oct 2023 09:59:45 AM UTC, comment #1: 

The example code given in comment #0 fails with the following error for me:

>> webread('https://www.theworldsworstwebsiteever.com', 'Timeout', 1) ;

error: webwrite: KEYS and VALUES must be strings
error: called from
    webread at line 96 column 7


I can reproduce the issue with the following command though:

options = weboptions ();
options.Timeout = 1;
webread('https://www.theworldsworstwebsiteever.com', options);


The attached patch fixes that for me.


(file #55272)

Markus Mützel <mmuetzel>
Group administrator
Fri 27 Oct 2023 03:54:02 PM UTC, original submission:  

Using an essentially dead server, the webread command does not time out according to the option given:


webread('https://www.theworldsworstwebsiteever.com', 'Timeout', 1) ;


It hangs instead for 5 minutes.

Muhali <muhali>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by mmuetzel (Updated the item)
  • -email is unavailable- added by muhali (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 10 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2024-01-12 rik5 StatusReady For Test Fixed
        Open/ClosedOpen Closed
    2023-10-29 mmuetzel StatusPatch Submitted Ready For Test
        Fixed ReleaseNone 8.4.0
        Planned ReleaseNone 8.4.0
    2023-10-28 mmuetzel Attached File- Added bug64826-webread-timeout.patch, #55272
        CategoryNone Octave Function
        Item GroupNone Incorrect Result
        StatusNone Patch Submitted
        Operating SystemGNU/Linux Any

    Back to the top

    Powered by Savane 3.13-0329.
    Corresponding source code