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

[merged] Libcurl prep #651

Closed
wants to merge 5 commits into from
Closed

Conversation

cgwalters
Copy link
Member

No description provided.

I was making some other changes in this code, and noticed that we were adding
checksums without object types into the same hash table for metadata. We should
*never* do this with both metadata content objects, since in theory a content
object could have the same hash as metadata.

I don't actually think it's possible in practice for pure metadata to collide,
since they have different structures, but let's do this anyways since it's
conceptually right.
This is prep for the libcurl porting. `GTlsCertificate/GTlsDatabase` are
abstract classes implemented in glib-networking for gnutls. curl's APIs take
file paths as strings, so it's easier to work on both if we move the GLib TLS
bits into the libsoup code.
It turns out libsoup strips all whitespace even *inside* a URL. We could do that
for libcurl too but...really, people shouldn't do that. In this test we were
adding the trailing newline into the URL. If someone complains who is using the
libcurl code we can deal with it then.
libcurl AFAICS doesn't have an API to convert HTTP code ➡️ error
string, so let's make the test regexp operate on both.
Now that we're daemonizing, it's useful to have the logs.  I
wanted this while debugging cookies.
@cgwalters cgwalters mentioned this pull request Jan 19, 2017
7 tasks
@giuseppe
Copy link
Member

@rh-atomic-bot r+ f15cb71

@rh-atomic-bot
Copy link

⌛ Testing commit f15cb71 with merge b260fa7...

rh-atomic-bot pushed a commit that referenced this pull request Jan 19, 2017
This is prep for the libcurl porting. `GTlsCertificate/GTlsDatabase` are
abstract classes implemented in glib-networking for gnutls. curl's APIs take
file paths as strings, so it's easier to work on both if we move the GLib TLS
bits into the libsoup code.

Closes: #651
Approved by: giuseppe
rh-atomic-bot pushed a commit that referenced this pull request Jan 19, 2017
It turns out libsoup strips all whitespace even *inside* a URL. We could do that
for libcurl too but...really, people shouldn't do that. In this test we were
adding the trailing newline into the URL. If someone complains who is using the
libcurl code we can deal with it then.

Closes: #651
Approved by: giuseppe
rh-atomic-bot pushed a commit that referenced this pull request Jan 19, 2017
libcurl AFAICS doesn't have an API to convert HTTP code ➡️ error
string, so let's make the test regexp operate on both.

Closes: #651
Approved by: giuseppe
rh-atomic-bot pushed a commit that referenced this pull request Jan 19, 2017
Now that we're daemonizing, it's useful to have the logs.  I
wanted this while debugging cookies.

Closes: #651
Approved by: giuseppe
@rh-atomic-bot
Copy link

☀️ Test successful - status-atomicjenkins
Approved by: giuseppe
Pushing b260fa7 to master...

@rh-atomic-bot rh-atomic-bot changed the title Libcurl prep [merged] Libcurl prep Jan 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants