|
|
@ -53,12 +53,13 @@ static |
|
|
TR_EventDone |
|
|
TR_EventDone |
|
|
connectorAccept(void * _this, TR_Event event) |
|
|
connectorAccept(void * _this, TR_Event event) |
|
|
{ |
|
|
{ |
|
|
|
|
|
int count = 0; |
|
|
TR_Connector this = _this; |
|
|
TR_Connector this = _this; |
|
|
TR_CommEndPoint connection = (TR_CommEndPoint)event->subject; |
|
|
TR_CommEndPoint connection = (TR_CommEndPoint)event->subject; |
|
|
TR_TcpSocket socket = TR_socketAccept( |
|
|
TR_TcpSocket socket = TR_socketAccept( |
|
|
(TR_TcpSocket)connection->transport); |
|
|
(TR_TcpSocket)connection->transport); |
|
|
|
|
|
|
|
|
while (socket) { |
|
|
|
|
|
|
|
|
while (socket && count++ < 100) { |
|
|
TR_socketNonblock((TR_Socket)socket); |
|
|
TR_socketNonblock((TR_Socket)socket); |
|
|
TR_Connection new_con = TR_new( |
|
|
TR_Connection new_con = TR_new( |
|
|
TR_Connection, |
|
|
TR_Connection, |
|
|
|