summaryrefslogtreecommitdiff
path: root/src/socketengine_kqueue.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Crusade to remove debug from stable and tested parts of the core and base ↵Gravatar brain2007-01-151-28/+6
| | | | | | | | | | modules. Most of the code here being de-noised hasnt had a crash or bug in it for many months, if not a year so the debug output is useless noise in the logfile when trying to trace a bug in a REAL problem area. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6356 e03df62e-2008-0410-955e-edbf42e46eb7
* pgsql should now work thx to added posibility to force a fd out of the ↵Gravatar peavey2007-01-111-4/+4
| | | | | | socketengine. This should only be used as a *last resort* when dealing with 3rd party libs that invalidates a file descriptor beyond your control. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6295 e03df62e-2008-0410-955e-edbf42e46eb7
* Change delays to 1 sec.Gravatar brain2006-12-301-2/+2
| | | | | | | NOTE: The chances of this actually waiting for 1 sec on any sizeable network are miniscule git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6176 e03df62e-2008-0410-955e-edbf42e46eb7
* Tons of optimization of WriteChannel, WriteChannelWithServ, WriteCommon etc, ↵Gravatar brain2006-12-301-1/+0
| | | | | | | | | | dont call userrec::GetFullHost or snprintf for every item, call it just once. Turns O(n) calls for every write into O(~1) calls per write. Remove some debug from the socketengines which makes debugging hard on large channels (write availability message) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6171 e03df62e-2008-0410-955e-edbf42e46eb7
* We can't log in SocketEngine::DelFd(), because the fd we're removing might ↵Gravatar brain2006-12-231-2/+0
| | | | | | just be that of the logger! git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6082 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix bug in m_dnsbl, a condition is always matched because someone was using ↵Gravatar brain2006-12-231-1/+2
| | | | | | | | | unsigned int to check a return val that can be -1 *slap w00t* Change around the way exit codes are formed so that we can return a sensible exit code that reflects why inspircd exited git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6076 e03df62e-2008-0410-955e-edbf42e46eb7
* Jesus, look who's the commit whore today. More header updates, and removal ↵Gravatar w00t2006-12-151-5/+2
| | | | | | of namespacing. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5996 e03df62e-2008-0410-955e-edbf42e46eb7
* Untested, new clever pointer voodoo class for binary-safe ziplinks output ↵Gravatar brain2006-12-111-1/+2
| | | | | | | | | buffers PLUS: Fix for random epoll dispatchevents crashes. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5926 e03df62e-2008-0410-955e-edbf42e46eb7
* A few lines here are loglevel DEFAULT and should be DEBUG.Gravatar brain2006-11-111-3/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5696 e03df62e-2008-0410-955e-edbf42e46eb7
* Dont worry this is only comments, not worth rebuilding forGravatar brain2006-10-311-1/+8
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5613 e03df62e-2008-0410-955e-edbf42e46eb7
* Start of stuff to handle socket error stateGravatar brain2006-10-311-2/+11
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5606 e03df62e-2008-0410-955e-edbf42e46eb7
* We dont want kqueue to go into an infinite loop when netsplitting, do we.Gravatar brain2006-10-311-5/+7
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5605 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove very verbose debugging of event systemGravatar brain2006-10-301-5/+4
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5589 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix for laggehnessGravatar brain2006-10-301-2/+6
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5585 e03df62e-2008-0410-955e-edbf42e46eb7
* Not tested yet: Write and read at the same time in kqueueGravatar brain2006-10-301-2/+28
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5582 e03df62e-2008-0410-955e-edbf42e46eb7
* Something here was loglevel default, should have been loglevel debugGravatar brain2006-10-211-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5507 e03df62e-2008-0410-955e-edbf42e46eb7
* Revert tweakGravatar brain2006-10-061-3/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5443 e03df62e-2008-0410-955e-edbf42e46eb7
* Make the socketengines always clear the slots on DelFd, even if the ↵Gravatar brain2006-10-061-2/+5
| | | | | | underlying queue call fails git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5437 e03df62e-2008-0410-955e-edbf42e46eb7
* Add extra debugging for socketengines, will now report OS error string when ↵Gravatar brain2006-10-061-1/+1
| | | | | | failing to remove a socket from the queue git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5436 e03df62e-2008-0410-955e-edbf42e46eb7
* Extra debuggingGravatar brain2006-10-011-0/+6
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5378 e03df62e-2008-0410-955e-edbf42e46eb7
* Wahhhhhhhhhhhh bwahahaha. Mass commit to tidy up tons of messy include listsGravatar brain2006-08-301-4/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5080 e03df62e-2008-0410-955e-edbf42e46eb7
* Get rid of SocketEngine::Wait and array-copy, change to ↵Gravatar brain2006-08-181-5/+6
| | | | | | SocketEngine::DispatchEvents git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4944 e03df62e-2008-0410-955e-edbf42e46eb7
* EventHandler class, an abstraction for raw i/oGravatar brain2006-08-181-13/+11
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4941 e03df62e-2008-0410-955e-edbf42e46eb7
* Just to mess with om's head, remove helperfuncs.h from everywhereGravatar brain2006-08-111-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4900 e03df62e-2008-0410-955e-edbf42e46eb7
* Change to using Instance->Log (InspIRCd::Log) rather than log() macroGravatar brain2006-08-111-11/+11
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4880 e03df62e-2008-0410-955e-edbf42e46eb7
* Now two types of log macro, log() and ilog(). log() assumes an InspIRCd ↵Gravatar brain2006-08-111-1/+1
| | | | | | | | | object called ServerInstance, ilog() takes an InspIRCd object as first param. TODO: Run a regexp over these, using perl, to translate them into InspIRCd::Log calls and then eliminate the macro :) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4879 e03df62e-2008-0410-955e-edbf42e46eb7
* Move tons more stuff into class InspIRCd*, make signal handler functions ↵Gravatar brain2006-08-101-1/+1
| | | | | | static members git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4855 e03df62e-2008-0410-955e-edbf42e46eb7
* Bail if we couldn't bind any ports (when did this get broken?)Gravatar brain2006-08-071-0/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4774 e03df62e-2008-0410-955e-edbf42e46eb7
* * Seperate out socket engines into derived classes of SocketEngine.Gravatar brain2006-07-191-0/+130
* Add a classfactory SocketEngineFactory to create a new socketengine of the configured type * Implement configure hax to compile only the required socketengine and the base class * Eliminates ugly defines, and is more in line with C++ ways git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4439 e03df62e-2008-0410-955e-edbf42e46eb7