summaryrefslogtreecommitdiff
path: root/include/socketengines
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-09-09 19:28:42 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-09-09 19:28:42 +0000
commitc11ec1cd3867fc6759fadb8143df676406b3e3e7 (patch)
tree3b5c07a6e06ff17e57b50df1db02416569d0b5ad /include/socketengines
parentd5411d06255ea264791631538642619d13e129aa (diff)
Fix invalid iterator in select socketengine, clean up its memory use a bit too
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11687 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/socketengines')
-rw-r--r--include/socketengines/socketengine_select.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/socketengines/socketengine_select.h b/include/socketengines/socketengine_select.h
index f50eb8d5d..a248e8a8e 100644
--- a/include/socketengines/socketengine_select.h
+++ b/include/socketengines/socketengine_select.h
@@ -33,10 +33,10 @@ class SelectEngine : public SocketEngine
private:
/** Because select() does not track an fd list for us between calls, we have one of our own
*/
- std::map<int,int> fds;
+ std::set<int> fds;
/** List of writeable ones (WantWrite())
*/
- bool* writeable;
+ std::vector<bool> writeable;
/** The read set and write set, populated before each call to select().
*/
fd_set wfdset, rfdset, errfdset;