Commit 911ee576 authored by jan.koester's avatar jan.koester
Browse files

now it works

parent 65e7ee82
Loading
Loading
Loading
Loading
+4 −3
Changes for src/event/epoll.cpp: 4 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -182,9 +182,10 @@ namespace netplus {

            struct epoll_event setevent { 0 };
            setevent.events =  EPOLLIN | EPOLLONESHOT;
            setevent.data.ptr = ccon.release();
            con *oldptr=ccon.release();
            setevent.data.ptr = oldptr;

            int estate = epoll_ctl(_pollFD, EPOLL_CTL_ADD,ccon->csock->fd(), &setevent);
            int estate = epoll_ctl(_pollFD, EPOLL_CTL_ADD,oldptr->csock->fd(), &setevent);

            if ( estate < 0 ) {
                char errstr[255];
@@ -193,7 +194,7 @@ namespace netplus {
                throw exception;
            }

             evconnection ->ConnectEvent(*ccon,tid,args);
             evconnection ->ConnectEvent(*oldptr,tid,args);
        };

        void ReadEventHandler(int pos,const int tid,ULONG_PTR args) {