summaryrefslogtreecommitdiff
path: root/src/socketengines
Commit message (Expand)AuthorAgeFilesLines
* Nuke trailing spaces•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11105 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar peavey2009-02-142-9/+7
* Some fixes to the kqueue socket engine•••The old code choked badly if a socket which was !eh->Readable() was added (it went into an endless loop where kqueue would keep reporting that socket for writeability). This also fixes a bug where DelFd() failed to clean up properly which caused the next AddFd() for an identical fd number to fail. Oh and this also adds some error messages and does some minor cleanup... git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11033 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar psychon2009-02-061-20/+33
* Fix the poll socketengine to actually work.•••The old implementation tried to use holes for unused entries in the array for poll() and the OS replied with POLLNVAL to which we replied with 100% CPU. Improvements: - It does compile! - It works git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11008 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar psychon2009-01-271-30/+79
* Fix for bug #686, include sysctl.h in a freebsd-specific ifdef•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10983 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2009-01-221-0/+3
* Missed one, thx peavey!•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10972 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2009-01-181-1/+1
* Fix what should have been the (real) problems with kqueue, so far so good for...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10971 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2009-01-181-4/+3
* Revert "Revert some of w00ts kqueue massacre from september, for some reason ...•••This reverts commit 11302829a008263dc306d08d675ad49d7d3f62ab. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10970 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2009-01-181-2/+4
* This is more accurate. #ifndef __FreeBSD__, #else, #endif•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10962 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2009-01-141-3/+2
* This should work, but not sure on these defines in poll socketengine•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10961 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2009-01-141-3/+21
* Revert some of w00ts kqueue massacre from september, for some reason its not ...•••randomly uses 100% cpu with the newer code, seems kqueue doesnt quite like to work exactly the same as epoll and poll. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10960 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2009-01-141-4/+2
* Update copyrights for 2009.•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10932 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2009-01-026-6/+6
* Backport from socket branch: allow read and write events to be triggered on o...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10906 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-12-231-1/+2
* Fix my massacre of kqueue, filters may not be or'd.•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10561 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-09-191-1/+2
* Experimental WSAPoll (thanks for not just using poll(), guys) support for Win...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10516 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-09-111-1/+0
* These socket engines may now recieve write and read events in the same cycle,...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10514 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-09-113-3/+3
* fix a warning. I am on a warning zapping crusade today.•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10380 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2008-09-041-1/+1
* Fixes to make poll(2) socket engine work properly•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10269 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-08-251-1/+3
* Numerous changes to make this build..•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10268 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-08-251-11/+13
* Forward-port poll socket engine as it seems reasonably stable, and half-hack ...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10264 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-08-252-1/+180
* Forward port r10234, thanks psychon•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10235 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-08-232-2/+2
* Fixes to some stuff that writes on memory it shouldn't (thanks psychon).•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10047 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-07-201-4/+4
* Measure bandwidth statistics from the socket engine (kiloBITS per second in, ...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9918 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2008-06-181-0/+1
* Only prepare epoll for 25% of maxfds initially; it will grow beyond that as n...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9832 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar special2008-06-011-1/+2
* Improve debug output on a few key methods of epoll socketengine, a must when ...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9830 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar peavey2008-06-011-1/+11
* Debug on out of range FD.•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9776 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-05-191-1/+1
* cleanup an old unused var•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9703 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar peavey2008-05-111-2/+0
* Apply patches to remove 200-odd dll limit on windows, made by GreenReaper, lo...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9533 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2008-04-181-3/+4
* Fix obvious compile error (whoops)•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9513 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2008-04-151-1/+1
* the select socket engine went on the assumption that a socket may remove itse...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9512 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2008-04-151-37/+28
* Patch from Brain: set MAX_DESCRIPTORS for all socket engines (I missed this)•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9394 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-04-074-0/+5
* Initialise this (valgrind warning)•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9384 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-04-061-0/+1
* Fix socketengine select to work with arsey compilers that think we're using I...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9287 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2008-04-031-1/+2
* Fix peavey and w00ts bug they found by removing the nonblocking part of the l...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9276 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2008-04-021-4/+7
* DOH! Fix my muppetry of a segfault, and fix some warnings•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9273 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2008-04-021-2/+2
* make sure we include the right headers and fix a warning in cmode_b•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9269 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2008-04-021-3/+2
* Proper sysctl stuff to work with bsd. It seems that the uname value 4 is linu...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9268 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2008-04-021-13/+11
* Automatic detection and allocation of max fds. No longer needs recompile to c...•••Please note that select and iocp socket engines do not support detection and are always set to FD_SETSIZE and 10240 descriptors respectively. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9263 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2008-04-025-24/+97
* Don't fuck up the map by inserting 0•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9251 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-04-011-1/+3
* Convert remaining InspIRCd::Log() calls to new logging system•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9001 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar aquanight2008-02-225-20/+20
* Keep count of the number of events in total, and seperate read, write and err...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8933 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2008-02-145-11/+44
* Won't somebody please think of the children.. kqueue too ;(•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8846 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-02-061-4/+4
* epoll did it too. >:(•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8845 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-02-061-2/+2
* Pro tip #2: making a fatal error 'SPARSE' logging only is a bit silly.•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8844 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-02-061-3/+3
* Pro tip: printf() doesn't add newlines for you•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8843 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-02-061-2/+2
* fixed std:: stuff•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8828 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar fez2008-02-051-2/+2
* fixed getsockopt parameter 4, removed sys/select.h on windows platform•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8780 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar fez2008-02-011-1/+3
* Header update: 2007 -> 2008•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8694 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-01-105-5/+5
* Remove craq•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8592 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-11-121-2/+0
* This works with multiple remote includes now except it hangs when an include ...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8590 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-11-111-0/+2
* Ok, this works except for it wont resolve hosts before full startup. argh why?!•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8580 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-11-111-3/+0