Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTTP Request Timeout Not Working #2448

Open
nashif opened this issue Sep 19, 2017 · 3 comments
Open

HTTP Request Timeout Not Working #2448

nashif opened this issue Sep 19, 2017 · 3 comments

Comments

@nashif
Copy link

nashif commented Sep 19, 2017

Reported by HY Teh:

Hi,

I am currently running a HTTP client in QEMU_cortex_m3 and I was trying to set the timeout for the http_client_send_req(..) function and it doesn't seem to work.

It still does not return immediately even after I've set the timeout to 0.

Can I get any help on this?

Cheers.

(Imported from Jira ZEP-2624)

@nashif
Copy link
Author

nashif commented Sep 20, 2017

by Jukka Rissanen:

Fix proposal is at zephyrproject-rtos/zephyr#1565
HY Teh Can you test this and report if it works for you?

@nashif
Copy link
Author

nashif commented Sep 20, 2017

by HY Teh:

Hi Jukka Rissanen I'm trying that with the function http_client_send_req(...,K_NO_WAIT) and it still doesn't work. Am I meant to call another function?

@nashif
Copy link
Author

nashif commented Sep 20, 2017

by HY Teh:

Sorry, I just tested it again and it's working fine for when there is connection (returns timeout straight away when it is set to K_NO_WAIT). However, when there is no connection, it still does not return immediately. Was I supposed to check if there was connection first?

Cheers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant