malinens Posted October 6, 2012 Report Share Posted October 6, 2012 (edited) Salabots! Manuāli vajadzēja sainstalēt svaigāko Curl ar dependencies. Sanāca nonest visu PHP un uzinstalēt no jauna Man radušās problēmas ar DNS kešošanu. Katru reizi name resolving notiek ap sekundi, kas nav normāli. Varbūt varat palīdzēt man noskaidrot, kāpēc tā? no curl_getinfo(): [http_code] => 200 [redirect_count] => 0 [total_time] => 1.297915 [namelookup_time] => 0.99997 [connect_time] => 1.061014 [pretransfer_time] => 1.061031 [starttransfer_time] => 1.128962 Info par serveri: PHP versija: 5.4.7 Apache 2.2.3 cURL support enabled cURL Information 7.21.7 Age 3 Features AsynchDNS Yes Debug No GSS-Negotiate Yes IDN Yes IPv6 Yes Largefile Yes NTLM Yes SPNEGO No SSL Yes SSPI No krb4 No libz Yes CharConv No Protocols dict, file, ftp, ftps, gopher, http, https, imap, imaps, ldap, ldaps, pop3, pop3s, rtsp, scp, sftp, smtp, smtps, telnet, tftp Host x86_64-redhat-linux-gnu SSL Version OpenSSL/0.9.8b ZLib Version 1.2.3 libSSH Version libssh2/1.2.7 Izmantoju ar curl_multi_exec()- paralēli tiek taisīti 4 pieprasījumi Šis ar nepalīdz: curl_setopt($aRequests[2], CURLOPT_DNS_USE_GLOBAL_CACHE, true); curl_setopt($aRequests[2], CURLOPT_DNS_CACHE_TIMEOUT, 3600); Esmu mainījis nameserverus (latnet, google utt.), bet nekā. Arī esmu labojis /etc/hosts, bet php-curls vienalga veselu sekundi taisa name lookup. Uz dev vides (Windows) viss ir OK Edited October 6, 2012 by malinens Quote Link to comment Share on other sites More sharing options...
ieleja Posted October 6, 2012 Report Share Posted October 6, 2012 pašai kastei viss ar DNS ierakstiem kārtībā? FQDNS un reversā Quote Link to comment Share on other sites More sharing options...
malinens Posted October 6, 2012 Author Report Share Posted October 6, 2012 DNS uz savas kastes neizmantoju, lai gan BIND ir uzinstalēts un ir palaists (nav žēl RAMa pāris liekiem resursiem) Quote Link to comment Share on other sites More sharing options...
malinens Posted October 7, 2012 Author Report Share Posted October 7, 2012 Starp citu, ja ar DNS kešošanu tiku galā, toties tagad ar curl_multi_select() problēmas. Jāizmanto https://bugs.php.net/bug.php?id=61141 Man ar php curl jau kopš senseniem laikiem ir bijušas problēmas... Quote Link to comment Share on other sites More sharing options...
Mr.Key Posted October 7, 2012 Report Share Posted October 7, 2012 Man ar php curl jau kopš senseniem laikiem ir bijušas problēmas... Man pēdējā problēma bija jocīga īpatnība uz DEV datora, ka specifiskus POST datus nespēja sagremot, kaut gan kods iepriekš strādāja bez aizķeršanās. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.