aboutsummaryrefslogtreecommitdiff
path: root/src/socketengines
Commit message (Collapse)AuthorAgeFilesLines
* socketengine_epoll: use getrlimit not ulimitGravatar Adam2016-11-221-4/+5
|
* socketengine_select Reset the values in the timeval struct on *nix before ↵Gravatar Attila Molnar2014-02-131-1/+3
| | | | select()
* socketengine_epoll Initialize CurrentSetSize (only used by m_httpd_stats)Gravatar Attila Molnar2014-02-051-0/+1
|
* Fix new file descriptor debug log message in socketengine_poll to show the ↵Gravatar Adam2014-02-041-1/+1
| | | | correct events
* Fix the Poll socket engine on BSD.Gravatar Peter Powell2013-07-071-31/+11
|
* Fix low risk crash when we can't determine maximum open socket count.Gravatar Peter Powell2013-07-074-7/+7
|
* Fix high CPU use on Windows when connecting to a serverGravatar attilamolnar2013-06-101-1/+3
| | | | | | When getting a write event for an EventHandler that wanted a single write only, remove it from the WriteSet (socketengine_select) Fixes #556 reported by @WindowsUser
* Fix the poll socket engine on BSD's other than FreeBSD.Gravatar Peter Powell2012-12-251-11/+16
|
* OpenBSD does not have KERN_MAXFILESPERPROC.Gravatar Peter Powell2012-12-251-1/+5
|
* Fix errors in socketengine_ports so it compiles on SolarisGravatar attilamolnar2012-12-211-9/+9
| | | | Thanks to fraggeln for reporting and testing
* Make the select() socketengine suck significantly lessGravatar Adam2012-11-091-52/+67
|
* Replace printf(_c) with iostreamGravatar ChrisTX2012-10-144-10/+14
|
* Windows: In-depth cleanup (see details)Gravatar ChrisTX2012-10-122-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | -Fix x64 builds for Windows. Now all configurations compile. -Remove the non-working rebase stuff. -Remove the Windows fork hack and instead use FreeConsole() to emulate the behavior. This directly allows us to compile with ASLR, which is turned on now. -Remove the old IPC mechanism for the removed GUI. This is not needed anymore as the GUI wasn't ever supported on anything newer than 1.2 -Remove the WIN32/WINDOWS macros. _WIN32 is supported on all x86-based VC++ targets, so that's what we need. -Enable optimizations for release builds. -De-duplicate printf_c(), it was previously copy-pasted into colors.h for configure -Add the VC++ specific bad files in .gitignore -Disable PID writing on Windows. This is only making sense for *nix builds. -Replace the CPU usage retrieval with an algorithm analogous to the *nix behavior. Also supports separated now/total values. (Tested with a dummy busy loop - seems working) -Removed certain unused functions and variables -Remove stdint defines from the windows wrapper -Remove CRT debug alloc. This is a bad idea as it would define a macro to replace free which breaks builds. -Re-evaluated the warnings list, commented it. -Moved inspircd_config/_version to include/ to match *nix -Removed the creation of inspircd_se_config, as it isn't used at all. -Made non-git builds show as "r0" instead of "r" (thanks to @SaberUK for pointing this out) -Fixed up m_spanningtree's project paths. Now all configurations (debug/release x86/x64) have been tested and build properly. -Moved FindDNS out of the wrapper and matched its log behavior with *nix. (It's pointless having it in the wrapper after the recent slimming down) -Replaced random/srandom wrappers with a mechanism that tries to use Windows' Random API first is no SSL module is loaded. -Removed more old junk from support for compilers older than VC++ 2010 (we don't have project files for these, so compiling them would be hard anyways) -Removed the unused ClearConsole() -Removed unused includes from the wrapper. Also, do not include psapi.h here if we don't link psapi.lib. This should be done where appropriate. -Made inet_aton an inline function for increased performance -C4800, performance warning about bool forcing, resolved at all occurrences. -C4701, uninitialized variable 'cached', resolved at all occurrences. -dlerror() was migrated out of the wrapper for more thread safety (no global buffer being shared) and increased performance. -Removed the wrong CRT debug flags. This drains a lot of performance. -Removed the clock_gettime/gettimeofday wrappers -Replaced all TCHAR/ANSI mix-ups of functions with the correct respective function. -Added a block of C4355 for < VS2012 -Update project files for c870714
* Fix Doxygen syntax errors.Gravatar Peter Powell2012-07-051-1/+0
|
* epoll: make sure EPOLLET flag does not get clobberedGravatar William Pitcock2012-05-201-4/+4
| | | | | EPOLLET is the highest bit, so storing EPOLLET in a signed value leads to undefined behaviour.
* Replace copyright headers with headers granting specific authors copyrightGravatar Robby-2012-04-195-40/+78
|
* Fixes for bug #12Gravatar Justin Crawford2012-04-142-4/+4
|
* Fix excessive memory use in kqueueGravatar Daniel De Graaf2011-03-031-1/+1
| | | | | The maximum number of file descriptors was incorrectly using the OS maximum, not the process maximum. Thanks to Liath for finding & testing.
* Remove bad return statement - noticed by zynox, thanksGravatar Jackmcbarn2011-01-041-1/+0
|
* Fix mismatched return value in kqueue DelFdGravatar danieldg2010-03-161-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12639 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix typo in kqueueGravatar danieldg2010-03-161-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12638 e03df62e-2008-0410-955e-edbf42e46eb7
* DelFd should not fail, it will leave a bad dangling pointer in that caseGravatar danieldg2010-03-025-25/+19
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12584 e03df62e-2008-0410-955e-edbf42e46eb7
* Don't send events for removed FDs when both read and write are readyGravatar danieldg2010-03-024-24/+11
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12582 e03df62e-2008-0410-955e-edbf42e46eb7
* Log duplicate UUID events a bit betterGravatar danieldg2010-03-021-0/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12580 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix kqueue to not report 0 maximum open socketsGravatar danieldg2010-02-131-26/+14
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12449 e03df62e-2008-0410-955e-edbf42e46eb7
* When we get events on unknown file descriptors, unregister them rather than ↵Gravatar danieldg2010-02-111-0/+4
| | | | | | spinning at 100% CPU git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12436 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove excessive gettimeofday system callsGravatar danieldg2010-01-185-0/+5
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12293 e03df62e-2008-0410-955e-edbf42e46eb7
* ...because every now and again, i have to do a massive commit.Gravatar brain2010-01-115-8/+8
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12248 e03df62e-2008-0410-955e-edbf42e46eb7
* remove a hanging #endifGravatar peavey2009-10-241-1/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11971 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove IOCP socket engineGravatar danieldg2009-10-242-755/+1
| | | | | | | | | | | | IOCP has been experimental since its introduction, and has not worked correctly for some time. Since we have no windows developer, remove the dead code. Most of the advantages of IOCP are not used by an ircd process regardless: we do not use threads for our client processing, and we add an extra copy operation that eliminates any gain from OS-level buffer reuse. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11970 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix noeol on socketengine_selectGravatar danieldg2009-10-141-16/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11874 e03df62e-2008-0410-955e-edbf42e46eb7
* Ugly-ish hack to select SocketEngine on windows until I or someone else ↵Gravatar peavey2009-10-112-29/+10
| | | | | | finds a better way. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11835 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix some signedness.Gravatar peavey2009-10-111-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11830 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix Extend usage and a few other things for latest API. Compiles but not tested.Gravatar peavey2009-10-111-42/+45
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11828 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove include/inspircd_se_config.h and socketengine-specific headersGravatar danieldg2009-09-306-6/+505
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11784 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix linking errors on BSDGravatar danieldg2009-09-281-5/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11774 e03df62e-2008-0410-955e-edbf42e46eb7
* Compile fixes and message updatesGravatar danieldg2009-09-261-3/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11767 e03df62e-2008-0410-955e-edbf42e46eb7
* Add FD_WANT_SINGLE_WRITE to efficiently replace FD_WANT_POLL_WRITEGravatar danieldg2009-09-266-18/+33
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11762 e03df62e-2008-0410-955e-edbf42e46eb7
* Clean up SocketEngine interface to allow edge-triggered I/O and sockets that ↵Gravatar danieldg2009-09-266-281/+243
| | | | | | do not force readability. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11760 e03df62e-2008-0410-955e-edbf42e46eb7
* Create StreamSocket for IO hooking implementationGravatar danieldg2009-09-216-27/+23
| | | | | | | | | | | | | | Fixes the SSL SendQ bug Removes duplicate code between User and BufferedSocket Simplify SSL module API Simplify EventHandler API (Readable/Writeable moved to SE) Add hook for culled objects to invoke callbacks prior to destructor Replace SocketCull with GlobalCull now that sockets can close themselves Shorten common case of user read/parse/write path: User::Write is now zero-copy up to syscall/SSL invocation User::Read has only two copy/scan passes from read() to ProcessCommand git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11752 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix invalid iterator in select socketengine, clean up its memory use a bit tooGravatar danieldg2009-09-091-14/+13
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11687 e03df62e-2008-0410-955e-edbf42e46eb7
* Update all wiki links to point to the new wiki. This was done automatically ↵Gravatar psychon2009-03-156-6/+6
| | | | | | | | | with the following command, only .Makefile.inc got some indent fixups by hand. for file in $(find -type f -and -not -path '*/.svn/*' -and -not -name '*.so') ; do sed -e 's#http://www.inspircd.org/wiki#http://wiki.inspircd.org#' -e 's#http://wiki.inspircd.org/index.php/#http://wiki.inspircd.org/#' -i $file ; done git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11223 e03df62e-2008-0410-955e-edbf42e46eb7
* Nuke trailing spacesGravatar peavey2009-02-142-9/+7
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11105 e03df62e-2008-0410-955e-edbf42e46eb7
* Some fixes to the kqueue socket engineGravatar psychon2009-02-061-20/+33
| | | | | | | | | | | | 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
* Fix the poll socketengine to actually work.Gravatar psychon2009-01-271-30/+79
| | | | | | | | | | | 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
* Fix for bug #686, include sysctl.h in a freebsd-specific ifdefGravatar brain2009-01-221-0/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10983 e03df62e-2008-0410-955e-edbf42e46eb7
* Missed one, thx peavey!Gravatar w00t2009-01-181-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10972 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix what should have been the (real) problems with kqueue, so far so good ↵Gravatar w00t2009-01-181-4/+3
| | | | | | for me.. this *does* need more testing though. Fix spotted by dz (check .filter, not .flags, and don't try to use it as a bitmask). TOR, ratbox, and similar projects use code like this, so I am fairly confident it is ok. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10971 e03df62e-2008-0410-955e-edbf42e46eb7
* Revert "Revert some of w00ts kqueue massacre from september, for some reason ↵Gravatar w00t2009-01-181-2/+4
| | | | | | | | its not too stable, e.g. placing wantwrite sockets into oneshot wantread? :P" This reverts commit 11302829a008263dc306d08d675ad49d7d3f62ab. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10970 e03df62e-2008-0410-955e-edbf42e46eb7
* This is more accurate. #ifndef __FreeBSD__, #else, #endifGravatar brain2009-01-141-3/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10962 e03df62e-2008-0410-955e-edbf42e46eb7