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 responses are being sent one byte at a time #16

Open
Nixes opened this issue Jan 12, 2017 · 6 comments
Open

http responses are being sent one byte at a time #16

Nixes opened this issue Jan 12, 2017 · 6 comments
Labels

Comments

@Nixes
Copy link
Owner

Nixes commented Jan 12, 2017

No description provided.

@Nixes Nixes added the bug label Jan 12, 2017
@Nixes
Copy link
Owner Author

Nixes commented Jan 12, 2017

server.setNoDelay(); makes no difference

@Nixes
Copy link
Owner Author

Nixes commented Jan 12, 2017

It seems to be a bug in how aWot response objects write non const byte arrays to the wifi-client.

@Nixes
Copy link
Owner Author

Nixes commented Jan 12, 2017

tried using res.write like so:

    uint8_t buffer[200];
    json_obj.printTo((char *)buffer, sizeof(buffer));// this is great except it seems to be adding quotation marks around what it  is sending

    res.success("application/json");
    res.write(buffer, sizeof(buffer));

which still resulted in single byte packets

@Nixes
Copy link
Owner Author

Nixes commented Jan 13, 2017

Tried Both:

client->flush();

and

response.flush();

with no improvements

@Nixes
Copy link
Owner Author

Nixes commented Jan 13, 2017

Another potential lead:

Advanced REST Client Thinks all responses including get/post from all endpoints of iotHubLib are empty.
Does this mean that the http output is malformed in some way?
But this might just be a symptom rather than a cause of course.

@Nixes
Copy link
Owner Author

Nixes commented Jan 24, 2017

This actually becomes a problem now, as this limits the time it takes for an actor to process a request.

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

No branches or pull requests

1 participant