xwords/xwords4/relay
Eric House 811c8f535e add socket refcounting
AddrInfo now has ref()/unref() and keeps a global socket->refcount map
(since actual AddrInfo instances come and go.) When the
count drops to 0, the existing CloseSocket() method is called. This
seems to fix a bunch of race conditions that had a socket being closed
and reused while old code was still expecting to write to the device
attached to the socket the first time (along with lots of calls to close()
already-closed sockets, attempts to write() to closed sockets, etc.)
2017-12-07 07:18:09 -08:00
..
scripts make reply messages a param within result 2017-12-06 18:57:48 -08:00
.gitignore ignore valgrind core files 2013-11-14 21:48:06 -08:00
addrinfo.cpp add socket refcounting 2017-12-07 07:18:09 -08:00
addrinfo.h add socket refcounting 2017-12-07 07:18:09 -08:00
cidlock.cpp printf -> catf missed because in ifdef 2013-10-09 20:40:21 -07:00
cidlock.h allow a thread to get a cidlock it already has. 2013-06-17 07:26:54 -07:00
configs.cpp don't use mlock in config; don't close socket 2017-12-06 19:11:32 -08:00
configs.h up copyright 2009-07-30 12:54:17 +00:00
cref.cpp bring in changes from relay_via_http branch 2017-11-12 20:25:29 -08:00
cref.h bring in changes from relay_via_http branch 2017-11-12 20:25:29 -08:00
crefmgr.cpp bring in changes from relay_via_http branch 2017-11-12 20:25:29 -08:00
crefmgr.h bring in changes from relay_via_http branch 2017-11-12 20:25:29 -08:00
ctrl.cpp no more variables called socket; all are "sock" now. 2015-11-20 23:15:04 -08:00
ctrl.h add missing lock(); track and display uptime of daemon child as well as parent 2009-07-31 12:56:04 +00:00
dbmgr.cpp bring in changes from relay_via_http branch 2017-11-12 20:25:29 -08:00
dbmgr.h bring in changes from relay_via_http branch 2017-11-12 20:25:29 -08:00
devid.h update with all relay/ changes from gtk_multigame. This is what the 2013-02-04 06:08:39 -08:00
devmgr.cpp rename printf -> catf; no other changes 2013-10-09 20:20:45 -07:00
devmgr.h cleanup 2013-09-05 07:53:47 -07:00
http.cpp get rid of mapping of socket->game_connection, which will not work 2013-01-12 16:09:24 -08:00
http.h serve http view from cached data and make cache refresh rate 2009-08-21 12:32:57 +00:00
lstnrmgr.cpp fix compile errors due to stricter compiler post debian upgrade 2013-05-29 06:36:54 -07:00
lstnrmgr.h add second class of socket to be listened on, meant for per-device 2010-08-12 06:42:33 -07:00
Makefile add socket refcounting 2017-12-07 07:18:09 -08:00
mlock.h no more variables called socket; all are "sock" now. 2015-11-20 23:15:04 -08:00
permid.cpp Store start time as time_t rather than string. 2009-09-26 14:05:51 +00:00
permid.h Store start time as time_t rather than string. 2009-09-26 14:05:51 +00:00
querybld.cpp replace overloaded method with diff-named one, avoiding call to wrong 2014-11-10 06:43:42 -08:00
querybld.h a more elegant way of building up params to pass to PQexecParams 2014-04-25 18:45:51 -07:00
rq.c fix compile warning. (Not really tested...it's a test app) 2015-07-01 06:35:47 -07:00
states.cpp update with all relay/ changes from gtk_multigame. This is what the 2013-02-04 06:08:39 -08:00
states.h update with all relay/ changes from gtk_multigame. This is what the 2013-02-04 06:08:39 -08:00
strwpf.cpp replace overloaded method with diff-named one, avoiding call to wrong 2014-11-10 06:43:42 -08:00
strwpf.h replace overloaded method with diff-named one, avoiding call to wrong 2014-11-10 06:43:42 -08:00
timermgr.cpp give timers ids so can be tracked in logs 2013-06-22 05:56:27 -07:00
timermgr.h give timers ids so can be tracked in logs 2013-06-22 05:56:27 -07:00
tpool.cpp add socket refcounting 2017-12-07 07:18:09 -08:00
tpool.h rather than invalidating socket in AddrRec when it's closed, add a 2013-06-21 06:05:26 -07:00
udpack.cpp rename printf -> catf; no other changes 2013-10-09 20:20:45 -07:00
udpack.h replace string_printf() with new class derived from std::string with 2013-09-02 13:17:42 -07:00
udpager.cpp change unsigned char to uint8_t (using sed) 2013-08-29 22:55:11 -07:00
udpager.h move timeout interval into config file; cleanup 2013-08-12 07:41:48 -07:00
udpqueue.cpp add socket refcounting 2017-12-07 07:18:09 -08:00
udpqueue.h add socket refcounting 2017-12-07 07:18:09 -08:00
xwrelay.conf_tmplate change port to live server's so recovery can be faster 2014-03-12 19:47:14 -07:00
xwrelay.cpp add socket refcounting 2017-12-07 07:18:09 -08:00
xwrelay.css Add an http interface (read-only web console). 2009-02-28 16:15:59 +00:00
xwrelay.h add and handle new INVITE message types. (This can safely be added to shipping relay.) 2015-07-10 23:25:06 -07:00
xwrelay.sh fix script that makes the db 2017-10-10 20:36:36 -07:00
xwrelay_priv.h change param names 2017-10-10 20:17:36 -07:00