Commit graph

50 commits

Author SHA1 Message Date
Kim Alvefur
869581384d net: Prefix module imports with prosody namespace 2023-03-17 16:23:12 +01:00
Kim Alvefur
f4208459a7 Merge 0.11->trunk 2021-01-12 19:19:15 +01:00
Kim Alvefur
f36531b53a net.adns: Prevent empty packets from being sent on "connect" (fix #1619)
Thanks Ge0rG for testing
2021-01-12 13:25:08 +01:00
Matthew Wild
ee1f17a301 net.adns: Reduce 'Exhausted all servers' message to warning
It happens often and generally doesn't require admin intervention.
2020-12-08 15:49:25 +00:00
Kim Alvefur
8c73ea0b22 util.dependencies: Tone down lua-unbound dependency for now
At least until packages are available

Wording from MattJ
2020-06-27 14:25:57 +02:00
Kim Alvefur
bde46d79cd net.adns: Log a warning if loaded (because net.unbound wasn't) 2020-06-25 17:55:24 +02:00
Matthew Wild
5ac8804435 net.adns: Add :lookup_promise() method 2020-01-24 13:50:02 +00:00
Kim Alvefur
bf79ad07b2 net.adns: Remove unused local [luacheck] 2019-07-30 02:36:15 +02:00
Kim Alvefur
75bfec7731 net.*: Remove tostring call from logging
Taken care of by loggingmanager now
2019-07-30 02:35:17 +02:00
Kim Alvefur
43b814a83b vairious: Add annotation when an empty environment is set [luacheck] 2018-02-28 20:06:26 +01:00
Kim Alvefur
78dd613bca net.adns: Import setmetatable into a local (fixes traceback on Lua 5.2) 2017-09-27 17:34:54 +02:00
Matthew Wild
a2e27dd4fb net.adns: Restructure to allow creating separate resolver objects, like net.dns 2017-09-25 23:06:00 +01:00
Anton Shestakov
45af943ce3 net.adns: remove unused local variables t_insert and t_remove [luacheck] 2016-07-09 00:58:16 +08:00
Kim Alvefur
69652ea24b net.*: Remove use of module() function 2015-02-21 10:45:24 +01:00
Kim Alvefur
486335f3db Merge 0.9 -> 0.10 2014-11-09 20:30:04 +01:00
Kim Alvefur
e6ae3454cf net.adns: Log peername recorded from wrapped setpeername instead of calling sock:getpeername, it exists and throws an error on unconnected sockets (thanks wirehack7) 2014-10-30 12:08:05 +01:00
Kim Alvefur
be1fe5d715 net.adns: Preserve error from setpeername 2014-10-30 12:05:24 +01:00
Kim Alvefur
608509a8b5 net.adns: Add missing local declaration 2014-06-25 15:33:49 +02:00
Kim Alvefur
75c19f9f6c Merge 0.9->0.10 2014-06-30 13:11:01 +02:00
Florian Zeitz
1d833bb807 Remove all trailing whitespace 2013-08-09 17:48:21 +02:00
Kim Alvefur
5b13d561ee net.dns, net.adns: Make sure errors from net.server are propagated (thanks asterix) 2013-07-10 07:45:10 +02:00
Kim Alvefur
4da406588e net.adns: Silence individual luacheck warnings instead of ignoring entire file 2018-12-24 03:00:27 +01:00
Matthew Wild
3fa72ad99a net.adns: Fix logging to handle unconnected UDP sockets 2011-01-08 23:20:36 +00:00
Matthew Wild
00524419cb net.adns: Log the DNS server that a query is sent to 2011-01-04 16:37:57 +00:00
Matthew Wild
b1a22d59e4 net.adns: Handle dns.query() failures, and pass error to handler 2010-12-24 04:52:40 +00:00
Matthew Wild
cad77ed8cf net.dns, net.adns: Update resolver:cancel() API so that a table doesn't need to be created for each cancellation internal to net.dns 2010-07-05 12:05:46 +01:00
Matthew Wild
e23e53d3b8 net.dns, net.adns: Move coroutine-calling logic into resolver:cancel() 2010-07-05 11:51:17 +01:00
Matthew Wild
46c0b8c7f9 Merge 0.6->0.7 2010-03-22 17:24:55 +00:00
Matthew Wild
2bc0606453 Update copyright headers for 2010 2010-03-22 17:06:15 +00:00
Matthew Wild
f2a5185e00 net.adns: Don't treat locally-initiated disconnects as fatal with libevent backend in use (thanks Flo) 2010-02-18 16:44:26 +00:00
Matthew Wild
597eb290d4 net.adns: Fix potential traceback on DNS responses with libevent enabled (thanks Flo) 2010-02-16 15:05:18 +00:00
Waqas Hussain
9939a23f32 net.dns, net.adns: Changed dns:socket_wrapper_set to dns.socket_wrapper_set for consistency. 2010-02-10 01:58:49 +05:00
Matthew Wild
f19f87250a net.adns: Use different flavour of voodoo to make UDP sockets work smoothly with libevent (no packet merging) 2010-01-31 19:54:56 +00:00
Matthew Wild
bc402832aa net.adns: Trailing whitespace 2010-01-31 18:09:37 +00:00
Matthew Wild
4a3a52f7a1 net.adns: Some cleanup, happens to also make it compatible with libevent 2009-11-26 22:08:10 +00:00
Matthew Wild
8f2a8c9c09 net.adns: Update for new net.server API (doesn't work with libevent yet) 2009-11-22 04:42:47 +00:00
Matthew Wild
73f760c896 net.adns: Trailing whitespace 2010-01-20 02:44:38 +00:00
Matthew Wild
cbd60d6e1f net.adns: Bump log-level of DNS handler errors to, er, 'error' 2009-10-05 09:56:08 +01:00
Matthew Wild
97c697c83e net.adns: Utilise new net.dns API to handle DNS network errors 2009-09-18 02:46:11 +01:00
Matthew Wild
e45610ce6e Add copyright header to those files missing one 2009-07-10 03:08:38 +01:00
Matthew Wild
c0df633428 Add log message when DNS lookup is cancelled 2009-05-28 02:17:19 +01:00
Matthew Wild
a5333a75d9 net.adns: Fix for calling handler when cancelling DNS lookup 2009-05-28 02:16:43 +01:00
Matthew Wild
d2197f6ca3 net.adns: Add support for cancelling a non-blocking lookup, optionally calling the handler 2009-05-26 21:48:32 +01:00
Matthew Wild
cface37b49 net.adns: Call handler for records already cached 2009-04-18 17:48:30 +01:00
Matthew Wild
e7cd3523a4 net.adns: Flush buffer after sending DNS request 2009-04-11 16:13:40 +01:00
Matthew Wild
99e99bdbda net.adns: Catch errors in DNS response callbacks 2009-04-10 10:30:50 +01:00
Matthew Wild
9dd38d32f9 net.adns: Set new send in net.server after 'connecting UDP' socket 2009-03-07 19:57:28 +00:00
Matthew Wild
8abe70936d net.adns: Return _M 2009-03-04 15:52:05 +00:00
Matthew Wild
9ce14526c9 net.adns: Load the correct dns lib 2009-03-04 14:44:28 +00:00
Matthew Wild
fb3b7ee05f net.adns: Add helper module for performing non-blocking DNS lookups 2009-03-04 12:59:35 +00:00