Skip to content

Commit c4b8bf8

Browse files
committed
Update: direct send
1 parent 6a685ce commit c4b8bf8

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

examples/server.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@ function my_onTimer($serv, $interval)
4040

4141
function my_onClose($serv, $fd, $from_id)
4242
{
43-
my_log("Client[$fd@$from_id]: fd=$fd is closed");
43+
//my_log("Client[$fd@$from_id]: fd=$fd is closed");
4444
}
4545

4646
function my_onConnect($serv, $fd, $from_id)
4747
{
4848
//throw new Exception("hello world");
49-
echo "Client[$fd@$from_id]: Connect.\n";
49+
//echo "Client[$fd@$from_id]: Connect.\n";
5050
}
5151

5252
function my_onWorkerStart($serv, $worker_id)

src/factory/FactoryProcess.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ int swFactoryProcess_worker_excute(swFactory *factory, swEventData *task)
231231
{
232232
swServer *serv = factory->ptr;
233233
swFactoryProcess *object = factory->object;
234-
swString *package;
234+
swString *package = NULL;
235235

236236
factory->last_from_id = task->info.from_id;
237237
//worker busy

src/network/ReactorThread.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@ int swReactorThread_send(swSendData *_send)
208208
goto buffer_send;
209209
}
210210
}
211+
//Buffer send
211212
else
212213
{
213214
buffer_send:

0 commit comments

Comments
 (0)