Openbravo Issue Tracking System - Retail Modules | |||||||||||||||||||
View Issue Details | |||||||||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||||||||||||
0038390 | Retail Modules | Web POS | public | 2018-04-17 13:02 | 2018-05-21 10:06 | ||||||||||||||
Reporter | alostale | ||||||||||||||||||
Assigned To | marvintm | ||||||||||||||||||
Priority | normal | Severity | minor | Reproducibility | have not tried | ||||||||||||||
Status | closed | Resolution | fixed | ||||||||||||||||
Platform | OS | 5 | OS Version | ||||||||||||||||
Product Version | |||||||||||||||||||
Target Version | Fixed in Version | RR18Q3 | |||||||||||||||||
Merge Request Status | |||||||||||||||||||
Review Assigned To | guilleaer | ||||||||||||||||||
OBNetwork customer | No | ||||||||||||||||||
Support ticket | |||||||||||||||||||
Regression level | |||||||||||||||||||
Regression date | |||||||||||||||||||
Regression introduced in release | |||||||||||||||||||
Regression introduced by commit | |||||||||||||||||||
Triggers an Emergency Pack | No | ||||||||||||||||||
Summary | 0038390: request timeout is checked only after reading the whole request content | ||||||||||||||||||
Description | While reading request content it is checked whether the request has timed out on after each line is read to stop processing if so (see 0037851). In most of the cases (ie. LogClient) the whole content is represented as a single line, which makes this part of the fix useless as in practice it only will time out after reading the whole request content. | ||||||||||||||||||
Steps To Reproduce | 1. Log in WebPOS 2. Simulate slow network by setting browser's network throttilng (set to something really slow) 3. Generate big log client to be sent, ie. execute: for (var i =0;i<500;i++) { var s = i + '-' for (var j=0; j<4096; j++) s += 'c' OB.warn(s) } 4. Wait till log client is sent to backend -> Check the request is detected as timed out only after the whole content is read | ||||||||||||||||||
Proposed Solution | Instead of reading the request line by line, do it using a fixed buffer size to be able to check timeout in a more frequent basis. | ||||||||||||||||||
Additional Information | |||||||||||||||||||
Tags | Performance | ||||||||||||||||||
Relationships |
| ||||||||||||||||||
Attached Files | ![]() https://issues.openbravo.com/file_download.php?file_id=11743&type=bug | ||||||||||||||||||
Issue History | |||||||||||||||||||
Date Modified | Username | Field | Change | ||||||||||||||||
2018-04-17 13:02 | alostale | New Issue | |||||||||||||||||
2018-04-17 13:02 | alostale | Assigned To | => Retail | ||||||||||||||||
2018-04-17 13:02 | alostale | OBNetwork customer | => No | ||||||||||||||||
2018-04-17 13:02 | alostale | Triggers an Emergency Pack | => No | ||||||||||||||||
2018-04-17 13:03 | alostale | Relationship added | related to 0037851 | ||||||||||||||||
2018-04-17 13:03 | alostale | Relationship added | related to 0038389 | ||||||||||||||||
2018-04-17 13:03 | alostale | Tag Attached: Performance | |||||||||||||||||
2018-04-17 13:08 | alostale | File Added: 38390.export | |||||||||||||||||
2018-04-17 13:09 | alostale | Note Added: 0103935 | |||||||||||||||||
2018-05-04 13:10 | hgbot | Checkin | |||||||||||||||||
2018-05-04 13:10 | hgbot | Note Added: 0104281 | |||||||||||||||||
2018-05-04 13:10 | hgbot | Status | new => resolved | ||||||||||||||||
2018-05-04 13:10 | hgbot | Resolution | open => fixed | ||||||||||||||||
2018-05-04 13:10 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/0e18b8cfd67f408e753b45a207a081f24bc07c93 [^] | ||||||||||||||||
2018-05-04 15:25 | marvintm | Assigned To | Retail => marvintm | ||||||||||||||||
2018-05-21 10:06 | guilleaer | Review Assigned To | => guilleaer | ||||||||||||||||
2018-05-21 10:06 | guilleaer | Status | resolved => closed | ||||||||||||||||
2018-05-21 10:06 | guilleaer | Fixed in Version | => RR18Q3 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|