Skip to content
This repository has been archived by the owner on Aug 31, 2021. It is now read-only.

support non-chunked pubsub endpoints #10

Merged
merged 2 commits into from Aug 18, 2011
Merged

Conversation

mreiferson
Copy link
Contributor

updates to pubsubclient in order to support both chunked and non-chunked source pubsub endpoints via autodetection.

introduce stream_request.c (this could move into libsimplehttp) to perform non-blocking HTTP stream requests

}
state = read_body;
}
break;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing evhttp_free(req)

@jayridge
Copy link
Collaborator

juicy

req = evhttp_request_new(NULL, NULL);
req->kind = EVHTTP_RESPONSE;
// 1 is the constant ALL_DATA_READ in http-internal.h
if ((evhttp_parse_firstline(req, EVBUFFER_INPUT(bev)) == 1)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think for correctness this should have separate states to parse the first line then parse the headers

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

resolved

…d autodetect whether or not the response is chunked; add convenience methods to perform a non-blocking HTTP request stream (stream_request.c)
@mreiferson
Copy link
Contributor Author

ready for review

jehiah added a commit that referenced this pull request Aug 18, 2011
support non-chunked pubsub endpoints
@jehiah jehiah merged commit 7f6f940 into bitly:master Aug 18, 2011
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants