Software /
code /
prosody
Comparison
net/server_event.lua @ 2126:12669db7ed4a
net.server_event: Comment accidentally uncommented vdebug()
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sun, 22 Nov 2009 04:09:57 +0000 |
parent | 2125:2b4f8a35e41a |
child | 2234:065faeb590b9 |
comparison
equal
deleted
inserted
replaced
2125:2b4f8a35e41a | 2126:12669db7ed4a |
---|---|
289 end | 289 end |
290 | 290 |
291 -- Public methods | 291 -- Public methods |
292 function interface_mt:write(data) | 292 function interface_mt:write(data) |
293 if self.nowriting then return nil, "locked" end | 293 if self.nowriting then return nil, "locked" end |
294 vdebug( "try to send data to client, id/data:", self.id, data ) | 294 --vdebug( "try to send data to client, id/data:", self.id, data ) |
295 data = tostring( data ) | 295 data = tostring( data ) |
296 local len = string_len( data ) | 296 local len = string_len( data ) |
297 local total = len + self.writebufferlen | 297 local total = len + self.writebufferlen |
298 if total > cfg.MAX_SEND_LENGTH then -- check buffer length | 298 if total > cfg.MAX_SEND_LENGTH then -- check buffer length |
299 local err = "send buffer exceeded" | 299 local err = "send buffer exceeded" |