mirror of
https://github.com/lunarmodules/luasocket.git
synced 2024-12-26 12:28:21 +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.
|
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: return values are consistent when reading from closed sockets;
|
||||||
* Fixed: case sensitivity in headers of multipart messages in
|
* Fixed: case sensitivity in headers of multipart messages in
|
||||||
smtp.message() (Graham Henstridge);
|
smtp.message() (Graham Henstridge);
|
||||||
|
@ -137,7 +137,7 @@ has been helping a lot too! Thanks to you all!
|
|||||||
</p>
|
</p>
|
||||||
|
|
||||||
<ul>
|
<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: return values are consistent when reading from closed sockets;
|
||||||
<li> Fixed: case sensitivity in headers of multipart
|
<li> Fixed: case sensitivity in headers of multipart
|
||||||
messages in smtp.message() (Graham Henstridge);
|
messages in smtp.message() (Graham Henstridge);
|
||||||
|
@ -88,7 +88,7 @@ function metat.__index:port(ip, port)
|
|||||||
ip, port = self.try(self.tp:getcontrol():getsockname())
|
ip, port = self.try(self.tp:getcontrol():getsockname())
|
||||||
self.server = self.try(socket.bind(ip, 0))
|
self.server = self.try(socket.bind(ip, 0))
|
||||||
ip, port = self.try(self.server:getsockname())
|
ip, port = self.try(self.server:getsockname())
|
||||||
self.try(server:settimeout(TIMEOUT))
|
self.try(self.server:settimeout(TIMEOUT))
|
||||||
end
|
end
|
||||||
local pl = math.mod(port, 256)
|
local pl = math.mod(port, 256)
|
||||||
local ph = (port - pl)/256
|
local ph = (port - pl)/256
|
||||||
@ -187,9 +187,9 @@ end
|
|||||||
-----------------------------------------------------------------------------
|
-----------------------------------------------------------------------------
|
||||||
-- High level FTP API
|
-- High level FTP API
|
||||||
-----------------------------------------------------------------------------
|
-----------------------------------------------------------------------------
|
||||||
function override(t)
|
local function override(t)
|
||||||
if t.url then
|
if t.url then
|
||||||
u = url.parse(t.url)
|
local u = url.parse(t.url)
|
||||||
for i,v in base.pairs(t) do
|
for i,v in base.pairs(t) do
|
||||||
u[i] = v
|
u[i] = v
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user