Cloud Wu
bbf46f935a
dec sending count asap, this may fix #794
2018-01-19 10:41:35 +08:00
Cloud Wu
5d5112257c
use 32bit sending, see issue #777
2017-12-06 20:58:36 +08:00
Cloud Wu
45d848c910
bugfix: inc sending ref, See issue #774
2017-12-04 10:55:47 +08:00
Cloud Wu
f12fa7e8f9
May fix issue #774
2017-12-03 00:26:12 +08:00
Cloud Wu
1c605bed2b
this may fix #744
2017-10-04 00:11:31 +08:00
Cloud Wu
d8798a280a
Revert "pthread may call __libc_memalign, see #731 "
...
This reverts commit c8d6ffd393 .
2017-09-06 22:21:04 +08:00
Cloud Wu
c8d6ffd393
pthread may call __libc_memalign, see #731
2017-09-06 20:19:29 +08:00
hwangcc23
596e8cfab2
Properly initialize sigaction struct
...
The code in skynet_main.c wasn't clearing the struct sigaction before passing it to sigaction().
This meant that we would block a random set of signals while executing the SIGPIPE handler, or jump to the uninitialized __sa_sigaction__ (instead of sa_handler).
Initialize properly as we do in skynet_start.c.
2017-08-31 22:38:50 +08:00
dmx
7be5ea0148
using clock_gettime in macos(in macos_10.12 and laster)
2017-08-28 11:26:51 +08:00
Cloud Wu
9c37f5292a
check direct write buffer before close, see #711
2017-08-11 17:06:01 +08:00
Cloud Wu
317b4fb08f
merge master
2017-07-14 21:42:15 +08:00
Cloud Wu
2b5c5e3dd3
see pr #683
2017-07-14 21:38:21 +08:00
Cloud Wu
751517d7c1
spinlock can be nested, see issue #646
2017-06-27 22:59:21 +08:00
Cloud Wu
03acc7f5a9
sp_write should be lock
2017-06-27 22:09:41 +08:00
Cloud Wu
9320d8b28d
Revert "add nested spinlock, see issue #646 "
...
This reverts commit ba59ed2e6c .
2017-06-27 22:08:33 +08:00
Cloud Wu
ba59ed2e6c
add nested spinlock, see issue #646
2017-06-27 17:10:48 +08:00
Cloud Wu
14aab9085a
Merge branch 'master' into directwrite
2017-06-27 16:15:45 +08:00
Jexocn
a9122a9fe1
hook memalign
2017-06-21 17:21:53 +08:00
Cloud Wu
b3c60d1de2
add MEMORY_CHECK macro to check double free
2017-06-21 15:41:46 +08:00
Cloud Wu
b438d5a6b0
remove typedef
2017-06-21 15:22:11 +08:00
Cloud Wu
aa42534208
use trylock in send_buffer
2017-06-21 11:50:06 +08:00
Cloud Wu
e96b4e782d
bugfix: lock bug & udp direct write
2017-06-20 22:50:09 +08:00
hongl
626ad544b7
send crash
2017-06-20 22:50:09 +08:00
Cloud Wu
c53da829d3
direct write if send queue is empty
2017-06-20 22:50:09 +08:00
Cloud Wu
25763fc70b
consider EPOLLHUP as EPOLLIN, see #644
2017-05-31 11:00:00 +08:00
Cloud Wu
7400e51451
support error event, see #644
2017-05-27 10:41:29 +08:00
Stocom
cce8f0086a
optimize SOCKET_WARNING msg
2017-04-28 10:49:30 +08:00
Cloud Wu
66f8fbd1b7
see issue #615
2017-04-19 10:50:48 +08:00
Cloud Wu
8e7796a672
lpeg 1.0.1
2017-04-11 13:09:24 +08:00
Cloud Wu
3a4a673b43
enhance config include
2017-03-21 11:49:04 +08:00
Cloud Wu
80d9ec379f
config support include
2017-03-20 14:32:05 +08:00
Cloud Wu
673ffcce00
close stdfds after write_pid, see issue #590
2017-03-19 11:38:25 +08:00
Cloud Wu
ffe5de468e
add skynet.stat 'time'
2016-10-26 18:01:22 +08:00
Cloud Wu
249ffb9362
add skynet.stat() to get cpu cost and message count
2016-10-26 17:43:52 +08:00
张玮华
0782b355a4
[bugfix] alpine linux 编译不通过。
2016-09-08 15:18:35 +08:00
Cloud Wu
ea9bc53261
reopen log file when recv signal HUP
2016-06-12 13:40:23 +08:00
Cloud Wu
76d1e6fa1f
memory warning
2016-05-06 20:37:51 +08:00
fztcjjl
645ce72e7e
fix comment error
2016-01-04 14:55:28 +08:00
DeanHH
014cbb9676
Update skynet_mq.c
...
Comment error:-)
2015-12-31 17:31:08 +08:00
Cloud Wu
0c4ea81709
EAGAIN and EWOULDBLOCK may be not the same value, see issue #420
2015-12-27 19:31:32 +08:00
Cloud Wu
20610723a1
add debug api to show current service c memory
2015-12-17 22:13:51 +08:00
Cloud Wu
4f8427a23f
close socket when sp_add failed
2015-12-17 10:04:38 +08:00
Cloud Wu
d4d188541f
add socket.close_fd
2015-12-06 16:48:28 +08:00
Cloud Wu
3335ea11d7
dummy luaS_expandshr
2015-11-19 21:02:46 +08:00
Cloud Wu
8d83881808
use CLOCK_MONOTONIC maybe better
2015-11-18 10:19:51 +08:00
Cloud Wu
2252409eaa
add skynet_now() for 64bit time
2015-11-16 19:48:38 +08:00
Cloud Wu
d283d7fcaa
check close return value
2015-11-12 18:34:50 +08:00
Cloud Wu
fa729d593b
lua alloc use raw allocator
2015-11-12 10:53:14 +08:00
Cloud Wu
9f3baf2ee3
fix issue #372
2015-11-11 15:06:10 +08:00
Cloud Wu
7521fe0530
socket.shutdown abandon unsend buffer now, see issue #371
2015-11-11 10:44:50 +08:00