plentymarkets / plentymarkets-shopware-connector

plentymarkets shopware connector plugin
http://www.plentymarkets.eu/shopware/
MIT License
30 stars 51 forks source link

CURLOPT_IPRESOLVE to decrease namelookup_time #523

Closed florianliebig closed 4 years ago

florianliebig commented 4 years ago
Q A
issue or Enhancement Enhancement
Version Specific version or SHA of a commit

Actual Behavior

I experienced a very high namelookup_time (> 10s) in CURL Request which really slows up connection since requests are blocking. I experienced this both locally as on server

Expected Behavior

Faster namelookup_time

Steps to Reproduce

Currently not sure if only in my place or a general problem.

Possible Solutions

https://stackoverflow.com/questions/8712167/curl-namelookup-time-of-10-seconds

curl_setopt($curl, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4); in "PlentymarketsAdapter\Client"

I'm not that into CURL but this solved it for me.

Pfabeck commented 4 years ago

Moin Florian, werden wir so übernehmen.

Danke für den Hinweis.

Beste Grüße Patryk