mirror of
https://github.com/lunarmodules/luasocket.git
synced 2024-12-26 04:28:20 +01:00
Global variable references.
This commit is contained in:
parent
185b6d806c
commit
e394956cde
2
NEW
2
NEW
@ -2,7 +2,7 @@ What's New
|
||||
|
||||
This is just a bug-fix/update release.
|
||||
|
||||
* Fixed: crash when reading '*a' on closed socket (Duck);
|
||||
* Fixed: crash when reading '*a' on closed socket (Paul Ducklin);
|
||||
* Fixed: return values are consistent when reading from closed sockets;
|
||||
* Fixed: case sensitivity in headers of multipart messages in
|
||||
smtp.message() (Graham Henstridge);
|
||||
|
@ -137,7 +137,7 @@ has been helping a lot too! Thanks to you all!
|
||||
</p>
|
||||
|
||||
<ul>
|
||||
<li> Fixed: crash when reading '*a' on closed socket (Duck);
|
||||
<li> Fixed: crash when reading '*a' on closed socket (Paul Ducklin);
|
||||
<li> Fixed: return values are consistent when reading from closed sockets;
|
||||
<li> Fixed: case sensitivity in headers of multipart
|
||||
messages in smtp.message() (Graham Henstridge);
|
||||
|
@ -88,7 +88,7 @@ function metat.__index:port(ip, port)
|
||||
ip, port = self.try(self.tp:getcontrol():getsockname())
|
||||
self.server = self.try(socket.bind(ip, 0))
|
||||
ip, port = self.try(self.server:getsockname())
|
||||
self.try(server:settimeout(TIMEOUT))
|
||||
self.try(self.server:settimeout(TIMEOUT))
|
||||
end
|
||||
local pl = math.mod(port, 256)
|
||||
local ph = (port - pl)/256
|
||||
@ -187,9 +187,9 @@ end
|
||||
-----------------------------------------------------------------------------
|
||||
-- High level FTP API
|
||||
-----------------------------------------------------------------------------
|
||||
function override(t)
|
||||
local function override(t)
|
||||
if t.url then
|
||||
u = url.parse(t.url)
|
||||
local u = url.parse(t.url)
|
||||
for i,v in base.pairs(t) do
|
||||
u[i] = v
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user