summaryrefslogtreecommitdiff
path: root/src/inspsocket.cpp
Commit message (Expand)AuthorAgeFilesLines
* Fix a small memory leak in inspsocket, thanks to Darom for the patch! Fixes b...•••git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@11026 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2009-02-031-0/+2
* This wasn't supposed to have been committed, my bad.•••git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@10162 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-08-181-2/+1
* Work around OpenSSL retardation and braindamage: if you pass a different buff...•••git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@10160 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-08-181-1/+2
* Backport 9944•••git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@9945 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-07-021-3/+9
* Backport r9773, fixes bug #534 reported by irefuse. Listening sockets cannot ...•••git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@9774 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-05-191-1/+2
* Backport r9247: server buffering improvements (don't constantly flush write b...•••git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@9248 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-04-011-6/+13
* Header update: 2007 -> 2008•••git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@8695 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-01-101-1/+1
* same as 8453, and now i'm back to bed.•••git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@8454 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2007-11-011-1/+4
* Merge in http://www.p2p-network.net/patches/blocking_fix.patch to fix random ...•••git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@8153 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-10-131-0/+3
* Fixed a rare infinite loop in InspSocket::FlushWriteBuffer() - this could onl...•••git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@8032 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar special2007-09-131-0/+6
* Merge comments back into stable, so that people can still understand stable!•••git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@7780 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-08-201-0/+3
* backport fix for bug i just introduced (oops)•••git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@7778 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-08-201-1/+1
* Backport, phew, glad this one applied cleanly.•••The only possibility for the issue sts found is that a socket is deleted but 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/branches/1_1_stable@7776 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-08-201-2/+2
* * Sockets will now always be nonblocking on win32 version of InspIRCd. There ...•••* configure will now compile under VC7 again. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7500 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar burlex2007-07-231-2/+7
* Ive tidied up the mode count stuff, but i still cant duplicate negative invis...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7474 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-07-181-2/+2
* OOPS! We try again, since I'm smoking craq. LF is 0x0a NOT CR.•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7456 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar peavey2007-07-161-1/+750
* 'svn propset -R svn:eol-style CR *' Set to UNIX-style always. Binaries are au...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7454 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar peavey2007-07-161-750/+1
* Fix for bug #347.•••WARNING: QA PEOPLE, THIS NEEDS TESTING!!!! Test this with lots of squits and connects, and i mean lots and lots in all different ways you can think of, /squit, pingout, closing the connection with a firewall etc. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7434 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-07-111-0/+3
* Warning: Loads of craq logging in here atm. /connect with openssl is broken, ...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7428 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-07-061-0/+2
* SSL buffering tweaks. NOTE this is not a complete fix till i say so, don't us...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7427 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-07-061-22/+5
* Change some = "" to clear() and some == "" to .empty()•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7263 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-06-091-1/+1
* Apply ipv6 #ifdef tidyup patch from djGrrr, thanks :)•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7190 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-05-301-45/+5
* - Add fix for /stats p support (this->port was not being set for listening in...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7171 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2007-05-281-0/+1
* Visual studio's ability to translate tabs to four spaces as default frustrate...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7047 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-05-191-3/+3
* Windows support. Tested and working to compile on freebsd and linux. Next ste...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7043 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2007-05-191-6/+26
* Much more detailed logging of lowlevel socket errors to the +l snomask•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6856 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-05-011-2/+19
* Fix crashbug in latest svn introduced by inspsocket cull list, which can caus...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6855 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-05-011-6/+2
* Make error reporting work properly, it seemed to loose errors.•••First change: Add a culling list of inspsockets waiting to be closed, so the close() is less likely to be called before the buffer is entirely empty. This seems to work well on my LAN. Second change: Add a SendError() method, rather than WriteLine("ERROR : ..."). This can be used to effect by also echoing out "Sent ERROR to %s: ..." onto the +l snomask meaning at least one end will always see the error even if the ERROR command is lost due to latency or design of the transport (e.g. ssl which may be writing during a read event etc) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6844 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-04-261-15/+13
* Fix for bug #261 - Needs QA'ing.•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6813 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-04-191-0/+3
* Remove unused variable•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6704 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-03-241-1/+0
* ident over ipv6 fixes, and fixes to inspsocket BindAddr which wasnt doing ipv...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6702 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-03-231-8/+14
* Fix high-bandwidth stuff with inspsocket+ssl, and eagain•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6699 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-03-221-2/+2
* Fixed <link:bind> which was only working on an ipv6 connection. Fixes bug #21...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6581 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-02-121-2/+26
* Ident fixes,•••removal of some old craq we dont use. cgiirc optimizations and tidyups git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6541 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-02-071-2/+0
* Added support for explicitly binding an outbound connection to an ip. Will be...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6534 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-02-071-8/+10
* Remove debug output that was only useful to me•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6530 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-02-061-5/+0
* Lets try this fix•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6526 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-02-061-0/+4
* When brain adds code into a constructor to fix a destructor crash, make sure ...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6519 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-02-061-0/+6
* Fix to stop failed sockets crashing in destructor•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6518 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-02-061-0/+1
* ipv6 fixes•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6517 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-02-061-11/+11
* Fixes to allow inspsocket connects to be protocol transparent•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6515 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-02-061-41/+157
* In InspSocket destructor remove any pending timers since the object is now go...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6514 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar peavey2007-02-061-1/+6
* Stuff to make dns work protocol-independent•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6506 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-02-051-1/+1
* Smart tricks to allow for ipv4 and ipv6 bindings on client ports. WARNING, NO...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6501 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-02-051-1/+1
* Move quitting of clients to a central Cull List, and do quitting outside user...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6497 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar peavey2007-02-051-1/+1
* ipv6 connect tweaks, to memcpy() sin6_addr's rather than assigning with =.•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6469 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-01-311-4/+3
* Tweaks to backwards memcpy's that dont actually do anything, causing ipv6 add...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6467 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-01-301-1/+1
* Whoops, fix inspsocket so that its ok to use errno after a failure of the Wri...•••the close() in its Close method always changed errno to "Endpoint is not connected" on error, so now we make a copy. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6462 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-01-301-0/+6
* Remove a ton of inspsocket debug•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6360 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-01-171-47/+2
* Add stuff so that the core catches CoreException properly•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6017 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-12-161-11/+10