Commit dcadc3c7 authored by jan.koester's avatar jan.koester
Browse files

´tets

parent 94c464b6
Loading
Loading
Loading
Loading
+1 −10
Changes for src/event/iocp.cpp: 1 added line, 10 removed lines.
Original line number Diff line number Diff line
@@ -251,12 +251,7 @@ namespace netplus {
					con *curCon = pClientContext->CurCon;
					switch (pClientContext->State) {
						case IO_WRITE_STATE: {
							try {
							eargs->event->ResponseEvent(*curCon, tid, args);
							} catch (...) {
								curCon->SendData.pos = 0;
								curCon->SendData.clear();
							}
	
							ULONG ssize = curCon->SendData.size() < BLOCKSIZE ? (ULONG)curCon->SendData.size() : BLOCKSIZE;
							size_t ret = 0;
@@ -283,12 +278,8 @@ namespace netplus {

							curCon->RecvData.append(buf.data.buf, recv);

							try{
							
							eargs->event->RequestEvent(*curCon, tid, args);
							} catch (...){
								curCon->RecvData.pos = 0;
								curCon->RecvData.clear();
							}
							
							if (!curCon->SendData.empty()) {
								pClientContext->State = IO_WRITE_STATE;