NetworkManager/clients/cloud-setup
Antonio Cardace fe3ddf3eff
nmcs-http: fix multiple HTTP request bug
Since just a single pointer is used to store the socket's GSource
if more than 1 consecutive request was done through the same
HTTP provider the 2nd request would clear the GSource associated to
the second request causing the 1st HTTP request to never complete
and end up in a expired timeout.

Use a hashtable instead so we can correctly track all requests.

https://bugzilla.redhat.com/show_bug.cgi?id=1821787

Fixes: 69f048bf0c ('cloud-setup: add tool for automatic IP configuration in cloud')
(cherry picked from commit 427fbc85f0)
(cherry picked from commit f5487645d8)
2020-08-04 23:49:32 +02:00
..
90-nm-cloud-setup.sh cloud-setup: let dispatcher script run tool only if service is enabled 2019-12-03 16:18:33 +01:00
main.c all: add nm_utils_error_is_cancelled() and nm_utils_error_is_cancelled_or_disposing() 2020-02-10 19:11:50 +01:00
meson.build license: Add license using SPDX identifiers to meson build files 2020-02-17 13:16:57 +01:00
nm-cloud-setup-utils.c shared/trivial: rename time related functions to use "nsec"/"msec" abbreviation instead of "ns"/"ms" 2020-02-10 19:11:50 +01:00
nm-cloud-setup-utils.h cloud-setup/trivial: rename timeout_ms to timeout_msec 2019-12-13 16:54:40 +01:00
nm-cloud-setup.service.in cloud-setup: require to explicitly opt-in for providers via environment variable 2019-12-03 16:18:33 +01:00
nm-cloud-setup.timer cloud-setup: add tool for automatic IP configuration in cloud 2019-11-28 19:52:18 +01:00
nm-http-client.c nmcs-http: fix multiple HTTP request bug 2020-08-04 23:49:32 +02:00
nm-http-client.h cloud-setup/trivial: rename timeout_ms to timeout_msec 2019-12-13 16:54:40 +01:00
nmcs-provider-ec2.c cloud-setup: fix allocating buffer for GetConfigMetadataMac in _get_config_metadata_ready_check() 2020-08-04 23:43:04 +02:00
nmcs-provider-ec2.h cloud-setup: add tool for automatic IP configuration in cloud 2019-11-28 19:52:18 +01:00
nmcs-provider.c cloud-setup: require to explicitly opt-in for providers via environment variable 2019-12-03 16:18:33 +01:00
nmcs-provider.h cloud-setup: require to explicitly opt-in for providers via environment variable 2019-12-03 16:18:33 +01:00