Commit Graph

82 Commits (8b979ccaf40ae38dbeaa5e7a4edb2e6d760fdffa)

Author SHA1 Message Date
Matthew Wild e50d22fcc4 core.httpserver: Rename request.responseheaders to the more logical request.headers 17 years ago
Matthew Wild 6b15ed47fd Protected call for HTTP request callbacks, to catch errors 17 years ago
Matthew Wild a3661957b6 Fix to prevent calling HTTP request callback twice with the same data 17 years ago
Matthew Wild 6b359b43a0 Small fix for logging in connlisteners (warning != warn) 17 years ago
Matthew Wild b12f8a8177 Remove some debugging code that slipped in 17 years ago
Matthew Wild b97b1db2a0 Fix specifying ports in config, and SSL support 17 years ago
Matthew Wild 89eb3c5d00 Remove logging for server.lua 17 years ago
Matthew Wild cabcee1bd0 HTTP requests now have status code as a number instead of a string. Switched parameters on both http.request() and the callback to better match LuaSocket's http module 17 years ago
Matthew Wild 6f71936ac3 Adding initial net.httpserver (lots of work to do on it) 17 years ago
Matthew Wild 97c4dc41bd Fix nil status code for http request callbacks 17 years ago
Matthew Wild b922b642ef Fix data loss when closing connection with a large write queue. Thanks albert :) 17 years ago
Matthew Wild 85e074d8b8 Change xmlhandlers to match stream opening tag with ns+tag 17 years ago
Matthew Wild 1fb0452d0c Protect loading of connlisteners, to catch errors 17 years ago
Waqas Hussain d3d9a986ba Fixed URL encoding to generate %0x instead of %x 17 years ago
Matthew Wild f0b2f41771 Make wraptcpclient set timeout to 0, and add it to the list of exported functions from server.lua 17 years ago
Matthew Wild 3f57f03f11 Oops, don't call server.loop() because we'll be running inside the server 17 years ago
Matthew Wild d18299fec9 Pass HTTP request object to callback 17 years ago
Matthew Wild 4b6cff1b8d HTTP request callbacks now: handler(code, content) (where code may be 0, and content an error message) 17 years ago
Matthew Wild 48891b0925 Non-blocking HTTP requests (adding net.http) 17 years ago
Matthew Wild d3ad4a5123 0.1 -> 0.2 17 years ago
Matthew Wild fab808b050 Fix blank tracebacks for c2s/s2s connections 17 years ago
Matthew Wild 0100a70831 stanza_dispatch != dispatch_stanza 17 years ago
Matthew Wild d3e7e2f1a7 Typo in variable name in last commit 17 years ago
Matthew Wild 1fedb0c649 stanza_dispatch = core_process_stanza, fixed for xmpp{client,server} listeners, and sessionmanager for the new syntax 17 years ago
Matthew Wild 3677718813 Code tidying for xmpp{client,server}_listeners 17 years ago
Matthew Wild 1142f30838 Remove old commented code from server.lua 17 years ago
Matthew Wild d9173986d5 Re-commit TLS fix 17 years ago
Matthew Wild c016526d9d Backed out changeset 099d8a102deb (committed too much) 17 years ago
Matthew Wild b2afc52730 Don't say we need TLS after we've already started the handshake 17 years ago
Matthew Wild 0d2b952b61 Add TLS socket to readlist before handshake starts, fixes major slow-down on TLS connections 17 years ago
Matthew Wild 32371bbb23 Comment out debug logging for now 17 years ago
Matthew Wild f334846311 Remove linger option on sockets, made no difference, and I forgot to remove it earlier 17 years ago
Matthew Wild 7c9f4818c3 Remove an incorrect line which I didn't add, and fix the proper way. Corrects the sending of stanzas over unauthed s2sout's. Also fixes mod_dialback to send stanzas and not strings. 17 years ago
Matthew Wild 7027c01125 Disconnect with stream errors on bad XML, or invalid stream namespace 17 years ago
Matthew Wild 327c81737e Abstract xmlhandlers a bit more, also add error callbacks 17 years ago
Matthew Wild bf3bb39ea3 Fix logger ids for c2s and s2sout 17 years ago
Matthew Wild 00fd43edfd Fix GPL'ing MIT/X licensed code :) 17 years ago
Matthew Wild 0c5cc83112 Insert copyright/license headers 17 years ago
Matthew Wild 428e9e1313 Fix for loading connlisteners when running without CFG_SOURCEDIR 17 years ago
Matthew Wild 7271c148ce Update Makefile to now pass config paths to prosody. Update prosody, modulemanager and connectionlisteners to obey these paths. 17 years ago
Waqas Hussain e26768484b Quickfix for dns.lua to not crash on failed connection to name servers 17 years ago
Matthew Wild 77c094c25a No more reading 1 byte at a time from sockets 17 years ago
Matthew Wild fba46bce30 (Basic) IDNA and SRV fallback support 17 years ago
Matthew Wild 7e9f14dae5 Fix a waqas copy/paste error. It was my fault again apparently. 17 years ago
Waqas Hussain 32d1450b6f Wrapped a core_process_stanza call in an xpcall call 17 years ago
Waqas Hussain f80397b3b8 Added temporary fix for srv on windows: using opendns nameservers 17 years ago
Matthew Wild 3ccec05207 Small fix for connlisteners to accept nil for userdata 17 years ago
Matthew Wild 950bc57ed0 Fix various mistakes in dns.lua 17 years ago
Matthew Wild 246bfb79cc Fix dns for poor Windows users, who have never seen a resolv.conf 17 years ago
Matthew Wild 94e7638395 All the people who don't use TLS, this one's for you. 17 years ago