summaryrefslogtreecommitdiff
path: root/src/modules/m_http_client.cpp
AgeCommit message (Collapse)Author
2008-04-01Same as 9249w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9250 e03df62e-2008-0410-955e-edbf42e46eb7
2008-04-01Remove call to FlushWriteBuffer from BufferedSocket::Write(), this means we ↵w00t
don't try write() pointlessly when we may very well not (chewing CPU), and instead waits for the socketengine to tell us we can write. Tested, works fine. (nothing used this return value anyway) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9247 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-30Commit -Wformat=2 -Wmissing-format-attributes, printf-like functions in ↵aquanight
inspircd now get treated like printf (meaning compile-time check goodness) in GCC git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9217 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-22Convert remaining InspIRCd::Log() calls to new logging systemaquanight
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9001 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-13Commit patch from danieldg that makes a ton of stuff const-safe for latest ↵brain
warn-happy trigger-happy gcc4 (thanks) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8922 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-11Last of the -Wshadow fixes.w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8894 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-03Clear up header insanityw00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8808 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-10Header update: 2007 -> 2008w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8694 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-12Argh, i give upbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8594 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-12NOTE: our stuff for parsing multiple dns replies for dnsbl with an 'A record ↵brain
reply' is broken. We will fix this at some later date. It was breaking other stuff git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8591 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-11This works with multiple remote includes now except it hangs when an include ↵brain
is within an include git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8590 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-11Currently crashes with multiple layers of include. don't use this yetbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8589 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-11Fix some dodgy destructor stuffbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8588 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-11IT WORKS!brain
In your face, everyone who sait it couldnt be modular! git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8585 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-11No crash, now we just have to find out why it wont connectbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8584 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-11Fixed all that, back to the crash we had before (yay?)brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8583 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-11Ok, this works except for it wont resolve hosts before full startup. argh why?!brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8580 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-11Hmmbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8579 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-11m_http_client is crashy. will fix.brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8578 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-04Remove Implements() method from every module. booya.brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8536 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-04Convert all to new Attach() system. The Implements() method needs removing ↵brain
from all modules as it is dead weight. WARNING: there are segfaults here! HERE BE DRAGONS, i am not finished! git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8510 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-15InspSocket -> BufferedSocket. Paves the way for a SimpleSocket class which ↵w00t
ident etc will use. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8206 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-23Add some stuff to change how we process a token sepeperated streambrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7800 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-20The only possibility for the issue sts found is that a socket is deleted but ↵brain
also ends up in the socket cull list somehow. To ensure that the socket does not get deleted, remove the delete and replace with an explicit call to insert into the socket cull list. We were grappling with these issues in early 1.1 with the userrec cull list, too. NOTE for later 1.2's consider making CullList a base class which we can derive from to delete lists of other items than userrecs. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7775 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-19Allow support for multiple dns results per request. This is a significant ↵brain
change and should probably not be backported to stable. This will allow for a fix to feature request bug #384 git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7753 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-16OOPS! We try again, since I'm smoking craq. LF is 0x0a NOT CR.peavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7456 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-16'svn propset -R svn:eol-style CR *' Set to UNIX-style always. Binaries are ↵peavey
auto skipped by svn. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7454 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-03Removed superfluous semicolonspippijn
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7423 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-17Conversionsw00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7354 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-09A ton more clear() and empty() stuff thats been lingering on the long term ↵brain
todo for too long a term :p git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7264 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-19Windows support. Tested and working to compile on freebsd and linux. Next ↵w00t
step is to make sure it actually works in windows too. ;p. Add Burlex to contributors. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7043 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-10Remove pointless debugbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6951 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-10Remove a large portion of commented craq, and make this fit in better with ↵w00t
the rest of the source (braces on individual lines etc) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6950 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-10Update this to use the new copyright headerw00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6949 e03df62e-2008-0410-955e-edbf42e46eb7
2007-02-07Fix warning, remove unused varbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6543 e03df62e-2008-0410-955e-edbf42e46eb7
2007-02-06Fixes to make this module build with the slightly changed inspsocket ↵brain
(insp_sockaddr addy is gone) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6516 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-20Fixed (rewrote) m_http_client's URL parsing, it is now more flexible and.. ↵special
actually works. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6416 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-20Fixingbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6407 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-20Apply fixes for buffering of headers, and a test module both by psychonbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6406 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-17Mass comment removal.brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6367 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-13Test fix for breakage with IPv6om
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6302 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-07Document dns caching, add a "bool cached" to OnLookupComplete method in ↵brain
Resolver, and and add " -- cached" to end of 'looking up your host' string if their result is a cached result git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6254 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-07DNS caching stuff (almost done)brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6252 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-07DNS Stuff - this wont work right yet, it will soon (tm)brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6250 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-07Add TTL stuff to dns system (pass it to inherited objects)brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6247 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-07Rename all the classes in m_httpd to be HttpServer etc,brain
Make a copy of the request in the http client so we dont need to leave pointers hanging around in the requestor module git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6246 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-07Make this use the newer format of class Request (this module was still using ↵brain
the old cast-data-to-char*-and-use-getdata-method) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6245 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-07Make this compile.peavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6244 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-07Added m_http_client - this is incomplete and won't work at all, don't try to ↵special
use it git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6243 e03df62e-2008-0410-955e-edbf42e46eb7