httpd Documentation/Code Discrepancies

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

httpd Documentation/Code Discrepancies

419 次查看
dspNeil
Contributor III

Using MQX 3.8 with RTCS, I'm having timeout issues with my hosted http server.

 

Digging through the code, I've found that in several cases, the #defines in httpd_cnfg.h are not actually used, and values are hard-coded into httpd.c, that are an order of magnitude shorter than the "defaults" called out in the RTCS User Guide.

 

From httpd_cnfg.h, the following are unused:

HTTPD_TIMEOUT_REQ_MS

HTTPD_TIMEOUT_SEND_MS

 

From httpd.c, the following do not match the documentation "default":

OPT_SEND_TIMEOUT - Doc "Default": 4 Mins (240,000 ms), Hardcoded Value: 500 ms

OPT_CONNECT_TIMEOUT - Doc "Default": 480,000 ms, Hardcoded Value: 5000 ms

 

I know that I can override these in my implementation, however what should they be? The values are so different that I question if either is right, or if an engineer just randomly picked numbers. It's really unfortunate that issues like this exist. I would have never looked into this had I not of received a direct customer complaint about our server not working over very latent connections.

标签 (1)
标记 (1)
0 项奖励
1 回复

248 次查看
Monica
Senior Contributor III

Hey Neil!

I would like to thank you for your observations and comments, we will be taking a really close approach to that.

Our technicians are currently working on the issues! Thanks a lot for your patience!

Regards,

Monica.

0 项奖励