Hi John,

    I was writing a message into the socket partially. I had done this to
avoid coping. This caused many transmissions for a single message. At the
other end I was doing MSG_PEEK optional flag which was wasteful. I had done
this to dump the message for debugging.

   By building my message into memory. I was able to send the entire message
in one socket write. At the other end of the socket I did the
MSG_WAITALLoptional for the
recv function. This caused the receiver to be active only when a
usable message peace was received.

One might say that a misbehaving client could still slow down the server. A
server should respond with a notification before dropping this client for
sending runt messages.

What is your design like?

Thanks,
-Alex


On Tue, Jun 17, 2008 at 11:57 AM, John Stanton <[EMAIL PROTECTED]> wrote:

> What did you change?  What was causing the lag?
>
> Alex Katebi wrote:
> > slowness is fixed. Can't tell the difference between client/server speed
> > from library.
> >
> > On Sat, Jun 14, 2008 at 8:32 PM, Alex Katebi <[EMAIL PROTECTED]>
> wrote:
> >
> >
> >>Hi All,
> >>
> >>   Looks like there is some interest. I will announce when I release it.
> >>Currently I am developing an interactive user shell client. This shell is
> >>used for my client/server development. It can also be embedded for any
> >>clients user interface.
> >>The request/response is a little slow for some reason. I need to fix this
> >>issue.
> >>
> >>Thanks,
> >>-Alex
> >>
> >>
> >>
> >>On Mon, Jun 2, 2008 at 11:40 AM, Alex Katebi <[EMAIL PROTECTED]>
> >>wrote:
> >>
> >>
> >>>Hi All,
> >>>
> >>>  I am using remote procedure calls (RPC) for SQLite in my application.
> I
> >>>have implemented a few SQLite RPC functions that I needed successfully.
> >>>I am wondering if there are other people like me who need this.
> >>>If there are enough people who could benefit from this I can make it
> >>>available as an open source public domain software.
> >>>Then people can add more functions as needed.
> >>>
> >>>Thanks,
> >>>-Alex
> >>>
> >>
> >>
>  > _______________________________________________
> > sqlite-users mailing list
> > sqlite-users@sqlite.org
> > http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
>
> _______________________________________________
> sqlite-users mailing list
> sqlite-users@sqlite.org
> http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
>
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to