We had performance testing in 3pcc mode, but we find there are some command
lost in heavy traffic, there maybe some errors in below code:
void buffer_write(struct sipp_socket *socket, char *buffer, size_t len,
struct sockaddr_storage *dest) {
struct socketbuf *buf = socket->ss_out;
struct socketbuf *prev = buf;
if (!buf) {
socket->ss_out = alloc_socketbuf(buffer, len, DO_COPY, dest);
TRACE_MSG("Added first buffered message to socket %d\n", socket->ss_fd);
return;
}
while(buf->next) {
prev = buf;
buf = buf->next;
}
prev->next = alloc_socketbuf(buffer, len, DO_COPY, dest);
TRACE_MSG("Appended buffered message to socket %d\n", socket->ss_fd);
}
the 'prev->next' should be 'buf->next' in the last line, otherwise the last
message in the linklist will be lost
Please confirm it.
Thanks!
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Sipp-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sipp-users